{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Using Interact"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The `interact` function (`ipywidgets.interact`) automatically creates user interface (UI) controls for exploring code and data interactively. It is the easiest way to get started using IPython's widgets."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from __future__ import print_function\n",
    "from ipywidgets import interact, interactive, fixed\n",
    "import ipywidgets as widgets"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<div class=\"alert alert-success\">\n",
    "As of ipywidgets 5.0, only static images of the widgets in this notebook will show on http://nbviewer.ipython.org. To view the live widgets and interact with them, you will need to download this notebook and run it with a Jupyter Notebook server.\n",
    "</div>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Basic `interact`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "At the most basic level, `interact` autogenerates UI controls for function arguments, and then calls the function with those arguments when you manipulate the controls interactively. To use `interact`, you need to define a function that you want to explore. Here is a function that prints its only argument `x`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "def f(x):\n",
    "    return x"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When you pass this function as the first argument to `interact` along with an integer keyword argument (`x=10`), a slider is generated and bound to the function parameter."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIIElEQVR4Xu3dT2gcVRwH8IlpYkspFBRBaj2KNE3/ptSLUBHUg148iIIiFVHRg+LBg//xYA8eKiIeFDUKUkXQS69iqidtYyHV5qAQxNaDSA/tlqZJmvX36i60UTLbZjK7k/k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lHCtmphoaG8hvndeZ5AgQIECBAgAABAgQIlCAgvJSA7BSXC7SDdn9/fy5NCtlzc3OCdq6UBgQIECBAgAABAgQI9IqAoN0rK1GzcUxOTl5883XeVe3W+7hfjCva+2pGZLoECBAgQIAAAQIECFRUQNCu6MJVfdhTU1PrG43Gc4ODg68tNpf4E2B7429oj1Z9vsZPgAABAgQIECBAgEB9BATt+qy1mRIgQIAAAQIECBAgQIBACQKCdgnITkGAAAECBAgQIECAAAEC9REQtOuz1mZKgAABAgQIECBAgAABAiUICNolIDsFAQIECBAgQIAAAQIECNRHQNCuz1qbKQECBAgQIECAAAECBAiUICBol4DsFAQIECBAgAABAgQIECBQHwFBuz5rbaYECBAgQIAAAQIECBAgUIKAoF0CslMQIECAAAECBAgQIECAQH0E/gEShZI/zepUZwAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_d0f3efb99b9c4630930ba1e58d0e265f\",\"min\":-10,\"description\":\"x\",\"max\":30,\"value\":10},{},{\"children\":[\"IPY_MODEL_cdebfde35e9b446db86d29c692798662\"],\"layout\":\"IPY_MODEL_5fea5451413e4bce878c6295f3d22638\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "10"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=10);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When you move the slider, the function is called, which prints the current value of `x`.\n",
    "\n",
    "If you pass `True` or `False`, `interact` will generate a checkbox:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF50lE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2dTc3OzoP3wjrwUH30ZdfNv0d57HrY9Ol7m35SpCRAgQIAAAQIECBAoXKBh0D47O0tzc3O34Xp+fj51d3ffYXJH+97WfBEn30cdRf0W9VXU14XvlvEJECBAgAABAgQIECBQpEA9aC8vLz8bGBgY7OjouIW4urpKTU1NqaWl5Q7M6elp2t3d/XVqauqNIsXuD/1RHH0e9W7UWdRW1FtRH0etMSJAgAABAgQIECBAgACBsgTqQTseFR9tbW39rqur66+2trbTRgzn5+cdJycnr1xcXHwSL0dbL4vKtAQIECBAgAABAgQIECBA4HGBetC+uXRpaemdarU6Gj8+dLf6WbyRfD1ejPbT461dQYAAAQIECBAgQIAAAQIEyhO4E7TLG9/EBAgQIECAAAECBAgQIEAgr4CgnddTNwIECBAgQIAAAQIECBAoXEDQLnwBjE+AAAECBAgQIECAAAECeQUE7byeuhEgQIAAAQIECBAgQIBA4QKCduELYHwCBAgQIECAAAECBAgQyCsgaOf11I0AAQIECBAgQIAAAQIEChcQtAtfAOMTIECAAAECBAgQIECAQF4BQTuvp24ECBAgQIAAAQIECBAgULiAoF34AhifAAECBAgQIECAAAECBPIKCNp5PXUjQIAAAQIECBAgQIAAgcIFBO3CF8D4BAgQIECAAAECBAgQIJBXQNDO66kbAQIECBAgQIAAAQIECBQuIGgXvgDGJ0CAAAECBAgQIECAAIG8AoJ2Xk/dCBAgQIAAAQIECBAgQKBwAUG78AUwPgECBAgQIECAAAECBAjkFRC083rqRoAAAQIECBAgQIAAAQKFCwjahS+A8QkQIECAAAECBAgQIEAgr4CgnddTNwIECBAgQIAAAQIECBAoXOBfSna3MQ2YDzQAAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_839da53538904425bdca6c73cdcafafd\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_ade195bcd3ed4e8894d70b5300cb0b60\"],\"layout\":\"IPY_MODEL_edf554e9b3204fe0bafb7a32936dd023\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=True);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you pass a string, `interact` will generate a text area."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAJc0lEQVR4Xu3dXYhV5RoH8CcbZ04RITjeqGAXQR+I2jhyCsoLj8mJuigv7EZTjhGVykkLqcjjlZzAgjp6UdaFWWCK0I2RYAqC+EWNiqKDiGiKo46TOadDZ4ZRz3rXaSa/asbxHWZv+G140dmuefbav+dls/+ud611R3gQIECAAAECBAgQIECAAAEC2QTuyFZJIQIECBAgQIAAAQIECBAgQCAEbZOAAAECBAgQIECAAAECBAhkFBC0M2IqRYAAAQIECBAgQIAAAQIEBG1zgAABAgQIECBAgAABAgQIZBQQtDNiKkWAAAECBAgQIECAAAECBARtc4AAAQIECBAgQIAAAQIECGQUELQzYTY1NY259957d3V2dv4pU0llCBC4TqC2tva/7e3tjzY0NJyAQ4AAAQIECBAgQKBSBQTtTJ1pbm6+Mnz48Kirq8tUURkCBK4X6OjoiLa2tnjwwQd9dpkeBAgQIECAAAECFSvgy2qm1nz33XdXJk6cmKmaMgQI/J7A999/H42NjT67TBECBAgQIECAAIGKFfBlNVNrBO1MkMoQ6EVA0DZFCBAgQIAAAQIEKl1A0M7UIUE7E6QyBARtc4AAAQIECBAgQKDKBQTtTA0UtDNBKkNA0DYHCBAgQIAAAQIEqlxA0M7UQEE7E6QyBARtc4AAAQIECBAgQKDKBQTtTA0UtDNBKkNA0DYHCBAgQIAAAQIEqlxA0M7UQEE7E6QyBARtc4AAAQIECBAgQKDKBQTtTA0UtDNBKkNA0DYHCBAgQIAAAQIEqlxA0M7UQEE7E6QyBARtc4AAAQIECBAgQKDKBQTtTA3sT9A+evRofPrpp3Hx4sWYN29ejB07Ns6cORNr166NPXv2xIIFC2LSpElx/vz5ePfdd+PDDz/83b398ccf48svv4za2tp48cUXM72r38ps3bo1duzYEe+880722goSuBUB99G+FS3bEiBAgAABAgQIDIaAoJ1JvT9BO730mjVr4ty5c/HGG2/07MnOnTtj9erV8fHHH5fPXb58OU6fPh2jR4++YW93794dDzzwQAwbNiy++uqrOHv2bLz88suZ3tVvZdavX18G7Q8++CB7bQUJ3IqAoH0rWrYlQIAAAQIECBAYDAFB+1r1GcWPq4pxtBhPpBxcjH8X4++//vm7PbqdoN3a2hqvv/56T+1du3aVQfujjz76wzmRjmK//fbb5dHuFLS//vrrOHny5IAE7W+//TbSfwAsWbJkMOap1yTQIyBomwwECBAgQIAAAQKVLiBo39ihmcVTK4sxthhpnfSrxbjcWyMHKmh3dXXFxo0bY/v27fHee+9dsxvpCPPKlStj+vTp0dDQEIcPH47jx4/HiBEjyqPPjY2NMXNmejsRKbynYH7w4MF4+OGH45lnnilrpiPVzz77bLlcfeHChXH33XfHvn37yuXqv/zyS7zyyitRU1MTTU1NZY1XX00cHgQGT0DQHjx7r0yAAAECBAgQINA3AUH75k5biqfTOu1pxTjRF8rbCdr79++PJ55IB9D///jhhx/i0KFDPUe0U3hetmxZfPLJJzfsyqxZs2LFihU9R7SL/Yi33norfvrpp3jttdfiiy++iJaWlti0aVPMnTs32tvb46WXXorly5fHqFGjIv3+okWLyr/fc889Za0333yzfJ3FixfHk08+GdOmTYsTJ06UQfv555/vC4dtCAyYgKA9YLQKEyBAgAABAgQIZBIQtG8OOb14el0x/lyMpr5Y307Q7m3peLpAWlqy3Zeg3b10/MqVK2Uo/vzzz2PLli3lke7x48eXbyWF8RSeH3rooZgzZ068//77MXz48DJMp/PCn3766XK7I0eOlAE8bf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BihXwZTVja/bu3XtfV1fXfRlLKkWAwFUCNTU1x4uj2cehECBAgAABAgQIEKhkAUG7krtj3wgQIECAAAECBAgQIECg6gQE7aprmR0mQIAAAQIECBAgQIAAgUoWELQruTv2jQABAgQIECBAgAABAgSqTkDQrrqW2WECBAgQIECAAAECBAgQqGQBQbuSu2PfCBAgQIAAAQIECBAgQKDqBATtqmuZHSZAgAABAgQIECBAgACBShYQtCu5O/aNAAECBAgQIECAAAECBKpO4H/7FudOLFCq6gAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_12d1ce5e84c14f85bb63e387bed88c62\",\"description\":\"x\",\"value\":\"Hi there!\"},{},{\"children\":[\"IPY_MODEL_5ae4f8a88dec43438f1f09c8d73db624\"],\"layout\":\"IPY_MODEL_a4127871e78946388b030299b8996440\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "'Hi there!'"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x='Hi there!');"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "`interact` can also be used as a decorator. This allows you to define a function and interact with it in a single shot. As this example shows, `interact` also works with functions that have multiple arguments."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABSCAYAAACrHKxvAAAMOElEQVR4Xu3dW4hV1xkH8DVzHHWsQ8cHEaG2jggtajQmhlZCY7A09KGUUrAPyUibkvah6SUEC00rTQOW0uKDLW2hN0zLaOlDoaJ9a1NIHoRqtDHkRgomKIiKaMbozODMOf22zkgGx9lncHtu+7fhY8g5y7X3+q01MP+sc/buSg4CBAgQIECAAAECBAgQIECgMIGuwnrSEQECBAgQIECAAAECBAgQIJAEbYuAAAECBAgQIECAAAECBAgUKCBoF4ipKwIECBAgQIAAAQIECBAgIGhbAwQIECBAgAABAgQIECBAoEABQbtATF0RIECAAAECBAgQIECAAAFB2xogQIAAAQIECBAgQIAAAQIFCgjaBWLqigABAgQIECBAgAABAgQICNrWAAECBAgQIECAAAECBAgQKFBA0C4QU1cECBAgQIAAAQIECBAgQEDQtgYIECBAgAABAgQIECBAgECBAoJ2gZi6IkCAAAECBAgQIECAAAECgrY1QIAAAQIECBAgQIAAAQIEChQQtAvE1BUBAgQIECBAgAABAgQIEBC0rQECBAgQIECAAAECBAgQIFCggKBdIKauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxdUWAAAECBAgQIECAAAECBG4G7b179/b39vb+c2Ji4uOVSuWtmWiy97q7u98cHR397OOPP34JHwECBAgQIECAAAECBAgQIDBd4GbQHhoaen7FihVfiZrV6NSpUynqT4ODg1+FSYAAAQIECBAgQIAAAQIECNwmaO/bt+/SAw888OF58+bNajQ+Pp6OHDny3mOPPdYPkwABAgQIECBAgAABAgQIELh90K5t3rx5Rp9z586lQ4cOpb6+vrRt27Z0+PDhFEHb97tvaH056ndR/4v6dNSfoy5HfXfypzVHgAABAgQIECBAgAABAiUSuBmWY0d7xqCdfVR89+7daWRkJD355JNpw4YNgvatC2QwXvpV1LqonVHfjKqWaB0ZKgECBAgQIECAAAECBAhMCswYtKvVavY97NTf35927dqVLl68mB599NG0devW6//MjvaM6+df8epHoh6JetcKI0CAAAECBAgQIECAAIFyCswYtA8cOJAOHjyYli1bls6ePZu2bNmStm/fflNI0J5xsXwpXv1r1CejjpVzORk1AQIECBAgQIAAAQIECMwYtF944YW0f//+6zqrV69OO3bsSB+8SZqgfcvCWRCv/DTqStTnJsO2j477/SJAgAABAgQIECBAgEAJBWYM2sPDw+mZZ565Hq537tyZli5dOo1G0L5lpfwoXnk+6lzU61F7on5ZwvVkyAQIECBAgAABAgQIECi9wAeD9jv33XffxxYsyDZnUxodHU2VSiX19PRMQxobG0vHjh17N+46vrL0ejcAvhb1dNRnooajDkV9KuqJqL8wIkCAAAECBAgQIECAAIFyCdwM2kNDQ08tWbLk2di9vhg72RMzMcQztCvnz59fEjdHe25wcDDbtXUQIECAAAECBAgQIECAAAECHxCY9izs+F72F2u12lOzCXV1de2JO5D/nSIBAgQIECBAgAABAgQIECBwq8C0oA2IAAECBAgQIECAAAECBAgQuDMBQfvO/PxrAgQIECBAgAABAgQIECAwTUDQtiAIECBAgAABAgQIECBAgECBAoJ2gZi6IkCAAAECBAgQIECAAAECgrY1QIAAAQIECBAgQIAAAQIEChQQtAvE1BUBAgQIECBAgAABAgQIEBC0rQECBAgQIECAAAECBAgQIFCggKBdIKauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxdUWAAAECBAgQIECAAAECBARta4AAAQIECBAgQIAAAQIECBQoIGgXiKkrAgQIECBAgAABAgQIECAgaFsDBAgQIECAAAECBAgQIECgQAFBu0BMXREgQIAAAQIECBAgQIAAAUHbGiBAgAABAgQIECBAgAABAgUKCNoFYuqKAAECBAgQIECAAAECBAgI2tZAUwReffXVz3d3dx+s5+SLFi1aMjAwcKmettoQIECAAAECBAgQIECg2QKCdrNnoITnP3nyZP/Vq1cvRtDOHX21Wr3eZu3atdZqrpYGBAgQIECAAAECBAi0goDw0gqzULJriN3sh3t6ev7d1ZW//LKgnZWgXbJFYrgECBAgQIAAAQIE2lggP+m08eBcemsKCNqtOS+uigABAgQIECBAgACBYgQE7WIc9TIHAUF7DliaEiBAgAABAgQIECDQdgKCdttNWftfsKDd/nNoBAQIECBAgAABAgQI3F5A0LY6Gi4gaDec3AkJECBAgAABAgQIEGiggKDdQGynuiEgaHfkSngkRvWTqG1R73TkCA2KAAECBAgQIECAQJ0CgnadUJoVJyBoF2fZIj0ti+t4MOpvUQOCdovMissgQIAAAQIECBBomoCg3TT68p5Y0O7Iu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7Xs0cwprVu3zlrN1dKAAAECBAgQIECAAIFWEBBeWmEWSnYNU0F7KkTPNvysTbVaFbRLtkYMlwABAgQIECBAgEA7Cwja7Tx7bXrtU0E7u9FZ3pGF7KzWrl2b3zivM+8TIECAAAECBAgQIECgAQLCSwOQnWK6wFTQrlQquTRZyB4fHxe0c6U0IECAAAECBAgQIECgVQQE7VaZiRJdx2uvvXZv3En8+Pz583NHnYXs7Lvca9assVZztTQgQIAAAQIECBAgQKAVBISXVpiFEl7D22+/Xcse75U9umu2Y/J73A/FR8dfKiGTIRMgQIAAAQIECBAg0IYCgnYbTlqnXPIbb7yxMnasV842nsWLF/93YGDgUqeM2TgIECBAgAABAgQIEOh8AUG78+fYCAkQIECAAAECBAgQIECggQKCdgOxnYoAAQIECBAgQIAAAQIEOl9A0O78OTZCAgQIECBAgAABAgQIEGiggKDdQGynIkCAAAECBAgQIECAAIHOFxC0O3+OjZAAAQIECBAgQIAAAQIEGiggaDcQ26kIECBAgAABAgQIECBAoPMFBO3On2MjJECAAAECBAgQIECAAIEGCvwf2xowcT3J7kAAAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_64314e1ab4f24e5e9bf778db00ad075c\",\"description\":\"x\",\"value\":true},{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_32a900c49fa34629a165bc64ff982ee8\",\"min\":-1,\"description\":\"y\",\"max\":3,\"step\":0.1,\"value\":1},{},{\"children\":[\"IPY_MODEL_3e775a5256524c7d84998c84ae34daf2\",\"IPY_MODEL_b2e07530d58b4866be54aa5ea6982e3d\"],\"layout\":\"IPY_MODEL_4295d38da2914cf093a19fd7ae047f07\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "(True, 1.0)"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "@interact(x=True, y=1.0)\n",
    "def g(x, y):\n",
    "    return (x, y)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Fixing arguments using `fixed`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "There are times when you may want to explore a function using `interact`, but fix one or more of its arguments to specific values. This can be accomplished by wrapping values with the `fixed` function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "def h(p, q):\n",
    "    return (p, q)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When we call `interact`, we pass `fixed(20)` for q to hold it fixed at a value of `20`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHsElEQVR4Xu3dzWscZRwH8Nk2Ly2UGsXeKoRKLklaCC14UKQnEU9eBMGDBfGgqEcvKoj4F1jv9Q0VelUQBEUFTy3VBIxQQxVy9BD6kjRtkvX3SJaQgnk2dXZnducz8KMp+2Se5/k8TyDfzM5sq3AQIECAAAECBAgQIECAAAECpQm0SjuTExEgQIAAAQIECBAgQIAAAQKFoG0TECBAgAABAgQIECBAgACBEgUE7RIxnYoAAQIECBAgQIAAAQIECAja9gABAgQIECBAgAABAgQIEChRQNAuEdOpCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBEgUE7RIxnYoAAQIECBAgQIAAAQIECAja9gABAgQIECBAgAABAgQIEChRQNAuEdOpCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBEgUE7RIxnap7gaWlpfbq6mr2G1qtVhE1NzMz80u2sQYECBAgQIAAAQIECBCogYCgXYNFaNoQFhcXJ7e2tq6NjIxkp765uVlE22J2dtZezWppQIA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V+Ltu44Q3C6ejm5ubsjRs3shIpaKc/YBw5cuTnbGMNipWVlYth9tHc3NxKnzgejX7Sk/rXo36KSs83mO9T37ohQIAAAQIECBAgUEsBQXv3stz71vFaLtqgD6rz8V43b97MTqUTtE+dOmWvZrU0IECAAAECBAgQIECgDgLCy+5V+Dr+m65mn6/D4gzrGDpBO92rnTvSk8nTFW1BOyfldQIECBAgQIAAAQIE6iIgaO+sxFPx5YWodI92+jzgP+qySMM2jk7QTvdp544UtNNVbUE7J+V1AgQIECBAgAABAgTqIiBo12UlGjSOTtBOD+7q5khB++TJk/ZqN1jaECBAgAABAgQIECBQuYDwUvkSNG8AnaCdnj7e7SFodyulHQECBAgQIECAAAECVQsI2lWvQAP77wTtePJ4dvbtdvvfNrOzs/ZqVksDAgQIECBAgAABAgTqICC81GEVGjaGTtDuhOi9pp/axMeBCdoN2yOmS4AAAQIECBAgQGCQBQTtQV69AR17J2inB53ljhSyU83MzOQb507mdQIECBAgQIAAAQIECPRBQHjpA7Iudgt0gvbBgwezNClkb2xsCNpZKQ0IECBAgAABAgQIEKiLgKBdl5Vo0DgWFxcn4y3h18bGxorcVe30wLQUtqenp+3VBu0RUyVAgAABAgQIECAwyALCyyCv3gCPfX5+/oX42K7Pcvdpp6vehw4dmjxx4sRfAzxdQydAgAABAgQIECBAoEECgnaDFttUCRAgQIAAAQIECBAgQKD3AoJ27431QIAAAQIECBAgQIAAAQINEhC0G7TYpkqAAAECBAgQIECAAAECvRcQtHtvrAcCBAgQIECAAAECBAgQaJCAoN2gxTZVAgQIECBAgAABAgQIEOi9gKDde2M9ECBAgAABAgQIECBAgECDBATtBi22qRIgQIAAAQIECBAgQIBA7wUE7d4b64EAAQIECBAgQIAAAQIEGiTwD1y5gD/MHH8UAAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_f5943e7071b348db8e50afcdac792e00\",\"min\":-5,\"description\":\"p\",\"max\":15,\"value\":5},{},{\"children\":[\"IPY_MODEL_4d97a4cfa21c4e2093296aa03d792f65\"],\"layout\":\"IPY_MODEL_a1754752431d48b3b0a229d697d675eb\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "(5, 20)"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(h, p=5, q=fixed(20));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Notice that a slider is only produced for `p` as the value of `q` is fixed."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Widget abbreviations"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When you pass an integer-valued keyword argument of `10` (`x=10`) to `interact`, it generates an integer-valued slider control with a range of $[-10,+3\\times10]$. In this case, `10` is an *abbreviation* for an actual slider widget:\n",
    "\n",
    "```python\n",
    "IntSlider(min=-10,max=30,step=1,value=10)\n",
    "```\n",
    "\n",
    "In fact, we can get the same result if we pass this `IntSlider` as the keyword argument for `x`:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAH/0lEQVR4Xu3dT2gcVRwH8Em3S/8cSkERRLE3K/mHaSN6EQRBPejFgygoVBEVPRQ8ePEP1YMePCgiHhS1FaSKoJdexagnbWOhVUtQCMXiQTy1CW1Mu+vv6S60UTJbOpnM7HwWfmzSfXnz3ue9Lfkys5ORzIMAAQIECBAgQIAAAQIECBAoTGCksJ50RIAAAQIECBAgQIAAAQIECGSCtk1AgAABAgQIECBAgAABAgQKFBC0C8TUFQECBAgQIECAAAECBAgQELTtAQIECBAgQIAAAQIECBAgUKCAoF0gpq4IECBAg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jPDMGdzIECAAAECBAgQIECgGQKCdjPW2SwJECBAgAABAgQIECBAoCQBQbskaIchQIAAAQIECBAgQIAAgWYICNrNWGezJECAAAECBAgQIECAAIGSBATtkqAdhgABAgQIECBAgAABAgSaISBoN2OdzZIAAQIECBAgQIAAAQIEShIQtEuCdhgCBAgQIECAAAECBAgQaIaAoN2MdTZLAgQIECBAgAABAgQIEChJ4G83j50/PqAvawAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_ee976feeed2144dcbfdbf7c7d6ebabda\",\"min\":-10,\"description\":\"x\",\"max\":30,\"value\":10},{},{\"children\":[\"IPY_MODEL_08a9a234b3974b79ab3cc21221683caa\"],\"layout\":\"IPY_MODEL_fc4b5b4835c54b7a85e7b4ddb03d1dc1\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "10"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=widgets.IntSlider(min=-10,max=30,step=1,value=10));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "This examples clarifies how `interact` proceses its keyword arguments:\n",
    "\n",
    "1. If the keyword argument is a `Widget` instance with a `value` attribute, that widget is used. Any widget with a `value` attribute can be used, even custom ones.\n",
    "2. Otherwise, the value is treated as a *widget abbreviation* that is converted to a widget before it is used.\n",
    "\n",
    "The following table gives an overview of different widget abbreviations:\n",
    "\n",
    "<table class=\"table table-condensed table-bordered\">\n",
    "  <tr><td><strong>Keyword argument</strong></td><td><strong>Widget</strong></td></tr>  \n",
    "  <tr><td>`True` or `False`</td><td>Checkbox</td></tr>  \n",
    "  <tr><td>`'Hi there'`</td><td>Text</td></tr>\n",
    "  <tr><td>`value` or `(min,max)` or `(min,max,step)` if integers are passed</td><td>IntSlider</td></tr>\n",
    "  <tr><td>`value` or `(min,max)` or `(min,max,step)` if floats are passed</td><td>FloatSlider</td></tr>\n",
    "  <tr><td>`('orange','apple')` or `{'one':1,'two':2}`</td><td>Dropdown</td></tr>\n",
    "</table>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "You have seen how the checkbox and textarea widgets work above. Here, more details about the different abbreviations for sliders and dropdowns are given.\n",
    "\n",
    "If a 2-tuple of integers is passed `(min,max)`, an integer-valued slider is produced with those minimum and maximum values (inclusively). In this case, the default step size of `1` is used."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHnUlEQVR4Xu3dTWhcVRgG4JtMQ5suqhYULC5qoJskraktKIhQEEQENyK6EQRxJYI/SxFXgroQRdSFG8WNuFNw40Jc6qK1kRazqKUIpQuxVfsfmpnxOyUjqJAzgZuZM/c+Ax9pktNzv/OcE8ib+Zuq3AgQIECAAAECBAgQIECAAIHaBKZqm8lEBAgQIECAAAECBAgQIECAQCVoOwQECBAgQIAAAQIECBAgQKBGAUG7RkxTESBAgAABAgQIECBAgAABQdsZIECAAAECBAgQIECAAAECNQoI2jVimooAAQIECBAgQIAAAQIECAjazgABAgQIECBAgAABAgQIEKhRQNCuEdNUBAgQIECAAAECBAgQIEBA0HYGCBAgQIAAAQIECBAgQIBAjQKCdo2YpiJAgAABAgQIECBAgAABAoK2M0CAAAECBAgQIECAAAECBGoUELRrxDTV8AInT558vt/vf5j7H9PT09Xs7Ozeubm5X3NjfZ8AAQIECBAgQIAAAQIlCAjaJexCy3pYWVnZGyH7TKfTya682+1WvV6vWlxcdFazWgYQIECAAAECBAgQIFCCgPBSwi60rIcTJ04cmZmZ+W5qKn/8UshOtbCwkB/cMkfLJUCAAAECBAgQIECgTAHhpcx9aXRXgnajt9fiCB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e1He1oZvD2XpcvX84ueBC0Dxw44KxmtQwgQIAAAQIECBAgQKAEAeGlhF1oWQ+DoJ0e4py7pVcmT/doC9o5Kd8nQIAAAQIECBAgQKAUAUG7lJ1oUR+DoB0Ps8+uOgXtdK+2oJ2lMoAAAQIECBAgQIAAgUIEBO1CNqJNbQyC9urq6lDLTkF7//79zupQWgYRIECAAAECBAgQIDBuAeFl3DvQwusPgvaNGzeGXr2gPTSVgQQIECBAgAABAgQIjFlA0B7zBrTx8oOg3e12s8vv9/s3xywuLjqrWS0DCBAgQIAAAQIECBAoQUB4KWEXWtbDIGgPQvRGy09jer2eoN2yM2K5BAgQIECAAAECBCZZQNCe5N2b0N4HQTu90FnulkJ2qoWFhfzg3GS+T4AAAQIECBAgQIAAgREICC8jQHaJfwsMgnan08nSpJC9trYmaGelDCBAgAABAgQIECBAoBQBQbuUnWhRHysrK3sjQJ/ZsWNHdtUpZKfncs/PzzurWS0DCBAgQIAAAQIECBAoQUB4KWEXWtjD6dOn+1evXs2uPL21V9wOxkPHl7ODDSBAgAABAgQIECBAgEABAoJ2AZugBQIECBAgQIAAAQIECBBojoCg3Zy9tBICBAgQIECAAAECBAgQKEBA0C5gE7RAgAABAgQIECBAgAABAs0RELSbs5dWQoAAAQIECBAgQIAAAQIFCAjaBWyCFggQIECAAAECBAgQIECgOQKCdnP20koIECBAgAABAgQIECBAoAABQbuATdACAQIECBAgQIAAAQIECDRHQNBuzl5aCQECBAgQIECAAAECBAgUIPA3CmpyP0KHnUAAAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_f36023aeb25547548a5127e8414d5476\",\"description\":\"x\",\"max\":4,\"value\":2},{},{\"children\":[\"IPY_MODEL_9af66bf6fede431d980f5bd76f158678\"],\"layout\":\"IPY_MODEL_b57d53765bee453596885a27f6ccd755\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=(0,4));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If a 3-tuple of integers is passed `(min,max,step)`, the step size can also be set."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHqklEQVR4Xu3dT2gcVRwH8EmyoS3moAcPBQs91iYNLS0oiGgRxIsHBT15EgXx4j8EBfGk6M0qnsSDeBFvHtSTUsSbtEZS6qEIqVAoWKjSJDRNt7v+nmbBqt2ZJJOdP/tZ+NE/+/bNe5/3FvLNzOxOZB4ECBAgQIAAAQIECBAgQIBAaQITpfWkIwIECBAgQIAAAQIECBAgQCATtG0CAgQIECBAgAABAgQIECBQooCgXSKmrggQIECAAAECBAgQIECAgKBtDxAgQIAAAQIECBAgQIAAgRIFBO0SMXVFgAABAgQIECBAgAABAgQEbXuAAAECBAgQIECAAAECBAiUKCBol4ipKwIECBAgQIAAAQIECBAgIGjbAwQIECBAgAABAgQIECBAoEQBQbtETF0RIECAAAECBAgQIECAAAFB2x6oRGBpaen25eXlByYmJg4PGcAfk5OT383Ozv5UySAdlAABAgQIECBAgAABAlsQELS3gOYl2xc4d+5cf319PYsgfcvO+v1+lqrX6z02Pz//xfaPqgcCBAgQIECAAAECBAjsvICgvfPGjvAvgTNnzjzY6XRODgvZg5dEyE5BO4uz2vaqnUSAAAECBAgQIECAQCMEhJdGLFO7BpmC9vT09Mm4bDx3YoJ2LpEGBAgQIECAAAECBAjUTCA/6dRswIbTfAFBu/lraAYECBAgQIAAAQIECNxaQNC2O0YuIGiPnNwBCRAgQIAAAQIECBAYoYCgPUJsh/pbQNC2EwgQIECAAA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vdq5z3SJebpjLagnSfleQIECBAgQIAAAQIE6iIgaNdlJcZoHIOgffXq1dxZp6CdzmoL2rlUGhAgQIAAAQIECBAgUBMBQbsmCzFOwxgE7fTBXUUeKWjHJ7rbq0WwtCFAgAABAgQIECBAoHIB4aXyJRi/AQyC9vXr1wtPXtAuTKUhAQIECBAgQIAAAQIVCwjaFS/AOB5+ELTTdz7nPfr9/l9N5ubm7NU8LM8TIECAAAECBAgQIFALAeGlFsswXoMYBO1BiB42+9Qmfe+2oD1ee8RsCRAgQIAAAQIECDRZQNBu8uo1dOyDoJ0+6CzvkUJ2qtnZ2fzGeZ15ngABAgQIECBAgAABAiMQEF5GgOwQNwsMgvbU1FQuTQrZ3W5X0M6V0oAAAQIECBAgQIAAgboICNp1WYkxGsfS0tLta2trv6cp553VTkE7fer4gQMH7NUx2iOmSoAAAQIECBAgQKDJAsJLk1evwWM/e/bs4U6ns5A3hfhk8pfi/uwTee08T4AAAQIECBAgQIAAgboICNp1WQnjIECAAAECBAgQIECAAIFWCAjarVhGkyBAgAABAgQIECBAgACBuggI2nVZCeMgQIAAAQIECBAgQIAAgVYICNqtWEaTIECAAAECBAgQIECAAIG6CAjadVkJ4yBAgAABAgQIECBAgACBVggI2q1YRpMgQIAAAQIECBAgQIAAgboICNp1WQnjIECAAAECBAgQIECAAIFWCAjarVhGkyBAgAABAgQIECBAgACBugj8Cc+siD9gzt/SAAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_3e89efcf10924434801060cdb750dfd2\",\"description\":\"x\",\"max\":8,\"step\":2,\"value\":4},{},{\"children\":[\"IPY_MODEL_100d37d7468b4b058bacf2859184b51f\"],\"layout\":\"IPY_MODEL_fa2cf97a450b4467af4fa51decd2b714\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=(0,8,2));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "A float-valued slider is produced if the elements of the tuples are floats. Here the minimum is `0.0`, the maximum is `10.0` and step size is `0.1` (the default)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHr0lEQVR4Xu3dT2gcVRwH8Mm/JtSiVcihoNhWvCRpaGhBQZSKIB48iAfx4En04kHBq3/wIHgV9eRFUVDEo95EK3htjSTUClVqIVCwFKVtkqZNd/29mj0UNW8XJrOzO5+FH4vu68z7fd4L5JvZnR0pPAgQIECAAAECBAgQIECAAIHSBEZKO5IDESBAgAABAgQIECBAgAABAoWgbRMQIECAAAECBAgQIECAAIESBQTtEjEdigABAgQIECBAgAABAgQICNr2AAECBAgQIECAAAECBAgQKFFA0C4R06EIECBAgAABAgQIECBAgICgbQ8QIECAAAECBAgQIECAAIESBQTtEjEdigABAgQIECBAgAABAgQICNr2AAECBAgQIECAAAECBAgQKFFA0C4R06EIECBAgAABAgQIECBAgICgbQ8QIECAAAECBAgQIECAAIESBQTtEjEdqnuB5eXlJ0dHR7/q5l/s3r37zgMHDvzVzVhjCBAgQIAAAQIECBAg0G8BQbvfK9DA8589e3bv2tranxG0s923Wq2bY2ZnZ+3VrJYBBAgQIECAAAECBAjUQUB4qcMqNGwOcTX72MTExPGRkfz2S0E7laDdsE2iXQIECBAgQIAAAQIDLJBPOgPcnKnXU0DQrue6mBUBAgQIECBAgAABAuUICNrlODpKDwKCdg9YhhIgQIAAAQIECBAgMHACgvbALdngT1jQHvw11AEBAgQIECBAgAABAv8vIGjbHZULCNqVkzshAQIECBAgQIAAAQIVCgjaFWI71T8CgvZQ7oTXoqu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Ttd1Ra0s1QGECBAgAABAgQIECBQEwFBuyYL0aRpdIL2xkb6WG/+kYJ2fHWavZqnMoIAAQIECBAgQIAAgRoICC81WISmTaETtK9fv95164J211QGEiBAgAABAgQIECDQZwFBu88L0MTTd4J23KE9237cofzmmLm5OXs1q2UAAQIECBAgQIAAAQJ1EBBe6rAKDZtDJ2h3QvR27acxrVZL0G7YHtEuAQIECBAgQIAAgUEWELQHefUGdO6doJ1udJZ7pJCdanZ2Nj84dzCvEyBAgAABAgQIECBAoAIB4aUCZKe4VaATtMfGxrI0KWRvbm4K2lkpAwgQIECAAAECBAgQqIuAoF2XlWjQPE6dOnU42l2cmprKdp1Cdvos98zMjL2a1TKAAAECBAgQIECAAIE6CAgvdViFBs7hzJkz7fT1Xumru7Z7pCva8RbzhXjr+E8NZNIyAQIECBAgQIAAAQIDKCBoD+CiDcuUT58+vT+uWO/frp/4Wq/vh6VffRAgQIAAAQIECBAg0AwBQbsZ66xLAgQIECBAgAABAgQIEKhIQNCuCNppCBAgQIAAAQIECBAgQKAZAoJ2M9ZZlwQIECBAgAABAgQIECBQkYCgXRG00xAgQIAAAQIECBAgQIBAMwQE7Wassy4JECBAgAABAgQIECBAoCIBQbsiaKchQIAAAQIECBAgQIAAgWYICNrNWGddEiBAgAABAgQIECBAgEBFAn8Dskp2P8UUduAAAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_84113ef905a94ee2b5f8470d35d1c64f\",\"description\":\"x\",\"max\":10,\"step\":0.1,\"value\":5},{},{\"children\":[\"IPY_MODEL_e1401910fb3043bdb307204915be5613\"],\"layout\":\"IPY_MODEL_16232cf8f4b2464a9bc0fe401ad506c4\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5.0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=(0.0,10.0));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The step size can be changed by passing a third element in the tuple."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIq0lEQVR4Xu3dT2gc1x0H8JEtS7ZsGcckhBgf6oMLkvxHwg7NoSEpLaFQaNNS+oc2pAltCLmkLQnJoaTJJbkkJLQ9lJ5Ccwih0PTQHnooPfRSqF0rst0WnGACwVCDLflPhFhrvf09RUscVd5ZeSe7szufgR+2dt7OvPd5T6CvdjQzlNkIECBAgAABAgQIECBAgACBwgSGCjuSAxEgQIAAAQIECBAgQIAAAQKZoG0RECBAgAABAgQIECBAgACBAgUE7QIxHYoAAQIECBAgQIAAAQIECAja1gABAgQIECBAgAABAgQIEChQQNAuENOhCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxHYoAAQIECBAgQIAAAQIECAja1gABAgQIECBAgAABAgQIEChQQNAuENOhCBAgQIAAAQIECBAgQICAoG0N9Ezg5MmT9zdia9WB8fHxd/bt27fQs046MQECBAgQIECAAAECBDYoIGhvEEzzzgXOnj27q1arzS8vL7d7sJmpqanZdhtrR4AAAQIECBAgQIAAgV4KCNq91K/ouefm5h4cGRl5e2gof/nV6/UVpcnJyfzGFfU0bAIECBAgQIAAAQIEyiUgvJRrPirRm7hk/PmxsbGft/OJtqBdiSVhkAQIECBAgAABAgQGSkDQHqjp7I/BCNr9MU96SYAAAQIECBAgQIDArQkI2rfm5l0dCAjaHeB5KwECBAgQIECAAAECpRcQtEs/RYPXQUF78ObUiAgQIECAAAECBAgQ+FhA0LYaui4gaHedvIgTfjMO8mTUvTc52NF4/YdR/436TNRPoi6utm21r4i+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23QTs/KfiZqJur2qHQ/g/R4r99H/e2Gnrbalz8gLQgQIECAAAECBAj0oUDRP4z3IUFxXY4bok3H3x2nxxnZWgiMjIz8YMeOHQ+nX0zkbcPD6Z5cWbrM/At5be3PsvBaiBuhzbIgQIAAAQIECBAgQKB3AoJ27+wre+bm473m5+dzDZpBOy7Lt1ZztTQgQIAAAQIECBAgQKAMAsJLGWahYn1oBu2FhfwnUDX/5l3QrtgiMVwCBAgQIECAAAECfSwgaPfx5PVr15tBO573nDuETZs2rbQ5fPiwtZqrpQEBAgQIECBAgAABAmUQEF7KMAsV60MzaKdHfOVtQ0MfLdFDhw5Zq3lY9hMgQIAAAQIECBAgUAoB4aUU01CtTjSD9uLiYtsDP3jwoLXatpaGBAgQIECAAAECBAj0UkB46aV+Rc/dDNpLS0u5Ao1GY6XNgQMHrNVcLQ0IECBAgAABAgQIECiDgPBShlmoWB+aQbtWq+WO/Pr16yttpqamrNVcLQ0IECBAgAABAgQIECiDgPBShlmoWB+aQTuejZ078nq9vtJmcnLSWs3V0oAAAQIECBAgQIAAgTIICC9lmIWK9eHUqVM/Hh0dfbWdYTfD+MTEhLXaDpg2BAgQIECAAAECBAj0XEB46fkUVK8Dp0+fno7Hdp1Ij+5q3lX8ZgopaEc9Encdf716UkZMgAABAgQIECBAgEA/Cgja/ThrA9Dnubm5B4eHh9/OG0pcOv5C3HH8+bx29hMgQIAAAQIECBAgQKAsAoJ2WWZCPwgQIECAAAECBAgQIEBgIAQE7YGYRoMgQIAAAQIECBAgQIAAgbIICNplmQn9IECAAAECBAgQIECAAIGBEBC0B2IaDYIAAQIECBAgQIAAAQIEyiIgaJdlJvSDAAECBAgQIECAAAECBAZCQNAeiGk0CAIECBAgQIAAAQIECBAoi4CgXZaZ0A8CBAgQIECAAAECBAgQGAgBQXsgptEgCBAgQIAAAQIECBAgQKAsAv8DzHioP+lG0k4AAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_76a18bd9eee04953b37f07aeddfb243e\",\"description\":\"x\",\"max\":10,\"step\":0.01,\"value\":4.99},{},{\"children\":[\"IPY_MODEL_1dd6c2f0eb1b450fb55fb6bf78fbcc7f\"],\"layout\":\"IPY_MODEL_2d04cb4fe8ad418aa8e3903f34b6f34d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4.99"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=(0.0,10.0,0.01));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "For both integer and float-valued sliders, you can pick the initial value of the widget by passing a default keyword argument to the underlying Python function. Here we set the initial value of a float slider to `5.5`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIEElEQVR4Xu3dX4hUVRwH8OuupmsqBb0EgUiB7rquayoFUS9FRBFZRCQUlPRUUBDUS9G/lx56KKqnCNR6sCLypZeSIiiIUtsYMxAK9THBP5mt/2Z3+h2di0q6d9S788f7ufBjcO6Zc8/53DOwX2fm3hmZjQABAgQIECBAgAABAgQIEChNYEZpPemIAAECBAgQIECAAAECBAgQyARti4AAAQIECBAgQIAAAQIECJQoIGiXiKkrAgQIECBAgAABAgQIECAgaFsDBAgQIECAAAECBAgQIECgRAFBu0RMXREgQIAAAQIECBAgQIAAAUHbGiBAgAABAgQIECBAgAABAiUKCNolYuqKAAECBAgQIECAAAECBAgI2tYAAQIECBAgQIAAAQIECBAoUUDQLhFTVwQIECBAgAABAgQIECBAQNC2BggQIECAAAECBAgQIECAQIkCgnaJmL3QVa1WW9Pf37+5a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L+j0q3c7o3aJJ1Gq1xsKFC7MFC9I3abtzy4P2/v37Cwc4a9asU21GR9Ndmmy9InD48OFs79692cjISNnv7dTfU1GfRf0dtSZqftTHTZt0K6/+qM+jbo66Nip9tfzqqBSwn4061iuOxkmAAAECBAgQIEDgcgTK/mP8csbSDa9dF4N4PurOqMNR6X7Bt0algLFpqgHGp4gjs2fP3nbs2LHTCbULt/w32gcOHCgcXWqbtm7+zXnhJCrYYM6cOSePHz++Kr5dka76XeaWQvS3UekWX1uiNkd9cdYB0gUE0zc/UqBOP734MOq3qPTb7PQNkeL/3SlztPoiQIAAAQIECBAg0EEBQbuD+O0+dH7V8YMHDxYeOg/a8Ym2NVKopQEBAgQIECBAgAABAgTOCAhRFVoNedA+dOhQ4azT1avTJmgXUmlAgAABAgQIECBAgACBcwQE7QotiDxop9/xFm19femuTFm2fPlya6QIy34CBAgQIECAAAECBAicJSBEVWg55EE73eKraJsx4/TSmIaLahUd2n4CBAgQIECAAAECBAj0tICg3dOn7+IGnwft8fHxll+4bNkya6RlLQ0JECBAgAABAgQIECCQZUJUhVZBHrTjyuiFs240GqfaDA8PWyOFWhoQIECAAAECBAgQIEDgjIAQVaHVkAftEydOFM56cjLdqSnLli5dao0UamlAgAABAgQIECBAgAABQbuSayAP2vV6vXD++f2zh4aGBO1CLQ0IECBAgAABAgQIECAgaFdyDeRBO/+0eiqEPIwPDg4K2pVcLSZNgAABAgQIECBAgMClCghRlyrXg6+r1WpPDAwMrM9v3TXVFNLXy9OVx5csWWKN9OC5NmQCBAgQIECAAAECBDonIER1zr7tR969e/c1EaAP5l8LLxpABO1F8Yn2nqJ29hMgQIAAAQIECBAgQIDAGQFBu2KrIYXtuI/2aNG0582b9+uiRYsOFbWznwABAgQIECBAgAABAgTOFRC0rQgCBAgQIECAAAECBAgQIFCigKBdIqauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBEgUE7RIxdUWAAAECBAgQIECAAAECBARta4AAAQIECBAgQIAAAQIECJQoIGiXiKkrAgQIECBAgAABAgQIECAgaFsDBAgQIECAAAECBAgQIECgRIH/APqGiT/dgKE1AAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_1deaaefe0e8a470bba99889317c8a1fd\",\"description\":\"x\",\"max\":20,\"step\":0.5,\"value\":5.5},{},{\"children\":[\"IPY_MODEL_d1294656d023417c8deed30ebaa2bd55\"],\"layout\":\"IPY_MODEL_b56780580a2f40b79dd65c0621943d2d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5.5"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "@interact(x=(0.0,20.0,0.5))\n",
    "def h(x=5.5):\n",
    "    return x"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Dropdown menus are constructed by passing a tuple of strings. In this case, the strings are both used as the names in the dropdown menu UI and passed to the underlying Python function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAJs0lEQVR4Xu3cXaxNZxoH8MdHkAiZaB2poBOJXkxGqkFIimBChAgZH1UknYggbgi9K0N8ZHxnwjRNEMoFmXJBM6EXxkc0rSbt4KZJayQzvsJpggwSDo5Za+Vozimt07PfPbXMbydv9j77nPWs1+9Ze2f/rXftVuFGgAABAgQIECBAgAABAgQIJBNolaySQgQIECBAgAABAgQIECBAgEAI2g4CAgQIECBAgAABAgQIECCQUEDQToipFAECBAgQIECAAAECBAgQELQdAwQIECBAgAABAgQIECBAIKGAoJ0QUykCBAgQIECAAAECBAgQICBoOwYIECBAgA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5Vq0RA0K5Ez7YECBAgQIAAAQIvioCgnaiTgnYiyKxM/i3kH3/8caxataq4Jnv8+PHfF79w4UKsXLmyWGqeX5fdvXv3dDtWqWIBQbtiQgUIECBAgAABAgReAAFBO1ETBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgL1269Kiuri46dOiQqKIyBMoncP369ejSpUvVJn737t1o165d9OjRw3tX1ZQVJkCAAAECBAgQqFTAh9VKBRttn53N+0N9ff2vE5ZUikCpBFq3bj04ew2cqtaks/r/6t+//4fVqq8uAQIECBAgQIAAgRQCgnYKRTUIECBAgAABAgQIECBAgECDgKDtUCBAgAABAgQIECBAgAABAgkFBO2EmEoRIECAAAECBAgQIECAAAFB2zFAgAABAgQIECBAgAABAgQSCgjaCTGVIkCAAAECBAgQIECAAAECgrZjgAABAgQIECBAgAABAgQIJBQQtBNiKkWAAAECBAgQIECAAAECBP4LBQLgTmcJEeMAAAAASUVORK5CYII=",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_3e026880026346e7a827527e14b3f3f5\",\"_options_labels\":[\"apples\",\"oranges\"],\"description\":\"x\",\"value\":\"apples\"},{},{\"children\":[\"IPY_MODEL_f7d78068687b43cfa5cfbc352c4f8fe7\"],\"layout\":\"IPY_MODEL_4f44ae0222c2426baaeec551960c104d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "'apples'"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x=('apples','oranges'));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you want a dropdown menu that passes non-string values to the Python function, you can pass a dictionary. The keys in the dictionary are used for the names in the dropdown menu UI and the values are the arguments that are passed to the underlying Python function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIMklEQVR4Xu3cT2iV6RUH4DOYWAMBceHGKa6CuigBTUKLOoiKWsGFqBQLRUTc2I1/EFEpRRHtQkEt1UUVlIpOBd2JglCkdKlWFKmILiyCQlWUaUrQJKbfvWhxxj/J5J5b59Un8CL5cr/znTznzeX+/G7yRfggQIAAAQIECBAgQIAAAQIE0gS+SKukEAECBAgQIECAAAECBAgQIBCCtk1AgAABAgQIECBAgAABAgQSBQTtREylCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBRAFBOxFTKQIECBAgQIAAAQIECBAgIGjbAwQIECBAgAABAgQIECBAIFFA0E7EVIoAAQIECBAgQIAAAQIECAjaSXvg6tWrX7W2tv71xYsXTJNMlSlPoL29PXp7e5vW+NixY4f6+/vndHV1/a1pF1GYAAECBAgQIECAQIMCQmGDgK9Pv3HjxlBHR0e0tbUlVVSGQHkC1X84RRWCm9Z4X19f3L17Nzo7Oz13NU1ZYQIECBAgQIAAgUYFvFhtVPDV+VeuXBlqZsBIalMZAk0VaHbQrjVfu0Z3d7fnrqZOUnECBAgQIECAAIFGBLxYbUTvjXMF7SRIZYoWELSLHp/mCRAgQIAAAQIEkgQE7SRIQTsJUpmiBQTtoseneQIECBAgQIAAgSQBQTsJUtBOglSmaAFBu+jxaZ4AAQIECBAgQCB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G1X//esOGDfWiBw4ciIsXL9ZD95kzZ2LixIn141u3bo3x48fHtm3b6p/X7mTv2rUrvvzyy8aacfZ7Bb5P0K4Vef028eHeLv7mBd3RtgEJECBAgAABAgR+6AKC9rcnVHtP8aZq1f5i1jfVqv0i6c+qtbZaX39omIJ2c7f6rVu3YtOmTbF8+fJYu7Y2johLly7V72AvWLCg/nvZtaD9ZmB7+vRp7Ny5MyZNmlT/g2hTpkyJOXPmNLfRz7z69w3ao+EStEej5hwCBAgQIECAAIH/p4CgnaQtaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkIJ2EqQyRQsI2kWPT/MECBAgQIAAAQJJAoJ2EqSgnQSpTNECgnbR49M8AQIECBAgQIBAkoCgnQQpaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkIJ2EqQyRQsI2kWPT/MECBAgQIAAAQJJAoJ2EqSgnQSpTNECgnbR49M8AQIECBAgQIBAkoCgnQQpaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkNeuXRuaOnVqtLW1JVVUhkB5As0O2n19fXH79u2YPn26567ytoeOCRAgQIAAAQKfjYAXq0mjvnz58sqWlpavBwcHkyoqQ6A8gfb29ujt7W1a42PGjImBgYFf9vT0/LlpF1GYAAECBAgQIECAQIMCgnaDgE4nQIAAAQIECBAgQIAAAQJvCgja9gMBAgQIECBAgAABAgQIEEgUELQTMZUiQIAAAQIECBAgQIAAAQKCtj1AgAABAgQIECBAgAABAgQSBQTtREylCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBRAFBOxFTKQIECBAgQIAAAQIECBAg8F8I2yxOrCaRFwAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_14f466c7ce7f47e08781c1dd169f5af0\",\"_options_labels\":[\"two\",\"one\"],\"description\":\"x\",\"value\":\"two\"},{},{\"children\":[\"IPY_MODEL_52834a393c7d418abe29403ff60c5276\"],\"layout\":\"IPY_MODEL_83fb6e72950b459899c35905fefe839f\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "20"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f, x={'one': 10, 'two': 20});"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Using function annotations with `interact`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you are using Python 3, you can also specify widget abbreviations using [function annotations](https://docs.python.org/3/tutorial/controlflow.html#function-annotations).\n",
    "\n",
    "Define a function with a checkbox widget abbreviation for the argument `x`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "def f(x:True): # python 3 only\n",
    "    return x"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Then, because the widget abbreviation has already been defined, you can call `interact` with a single argument."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF10lEQVR4Xu3dPUhkZxQG4G/8IYIRRkRMsZLGMmgak1gEwYWQcgmYwh+yhlSxSAg2EkkTIY3FElJto7uMhnQRbWNrIQRSmCpFgk3UwtUlOKBojq4MO3jXZr/uPgMvwpU5cB/OFC937p1K8iJAgAABAgQIECBAgAABAgSyCVSyTTKIAAECBAgQIECAAAECBAgQSIq2JSBAgAABAgQIECBAgAABAhkFFO2MmEYRIECAAAECB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/MyJAgAABAgQIECBAgACBcgk0inatVvu6u7v7256ensMo1+dFDGdnZ22Hh4d9Uba/j6J9ddXWiwABAgQIECBAgAABAgQIEHhJoOm3sOO+7AeXl5cP4//VVyg9q1QqK/EE8l8pEiBAgAABAgQIECBAgAABArcFmoo2IAIECBAgQIAAAQIECBAgQOD1BBTt1/PzbgIECBAgQIAAAQIECBAg0CSgaFsIAgQIECBAgAABAgQIECCQUUDRzohpFAECBAgQIECAAAECBAgQULTtAAECBAgQIECAAAECBAgQyCigaGfENIoAAQIECBAgQIAAAQIECCjadoAAAQIECBAgQIAAAQIECGQUULQzYhpFgAABAgQIECBAgAABAgQUbTtAgAABAgQIECBAgAABAgQyCijaGTGNIkCAAAECBAgQIECAAAECirYdIECAAAECBAgQIECAAAECGQUU7YyYRhEgQIAAAQIECBAgQIAAAUXbDhAgQIAAAQIECBAgQIAAgYwCinZGTKMIECBAgAABAgQIECBAgICibQcIECBAgAABAgQIECBAgEBGAUU7I6ZRBAgQIECAAAECBAgQIEBA0bYDBAgQIECAAAECBAgQIEAgo4CinRHTKAIECBAgQIAAAQIECBAg8D8H+LsxvYhB8QAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_0dbfdeb58ada42a496e24893c18dda1b\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_8b083981295644fcaf92773d8155ba4b\"],\"layout\":\"IPY_MODEL_9ddc71f5707b4dac89497a9b209149be\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you are running Python 2, function annotations can be defined using the `@annotate` function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from IPython.utils.py3compat import annotate"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "@annotate(x=True)\n",
    "def f(x):\n",
    "    return x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF60lEQVR4Xu3dPUhkZxQG4G/8IbpBtFC02GIFOwOmSyyCiwshXZaAAf8ghK1iEQg2gqQS0liEkCqkWNY/0q1oG9nOLiSFqQLuYgoVQTQkWs3kKMuQwTFu8XXfIxxk7r0eOA9nipd7uVaSHwIECBAgQIAAAQIECBAgQCCbQCVbJ40IECBAgAABAgQIECBAgACBJGhbAgIECBAgQIAAAQIECBAgkFFA0M6IqRUBAgQIECBAgAABAgQIEBC07QABAgQIECBAgAABAgQIEMgoIGhnxNSKAAECBAgQIECAAAECBAgI2naAAAECBAgQIECAAAECBAhkFBC0M2JqRYAAAQIECBAgQIAAAQIEBG07QIAAAQIECBAgQIAAAQIEMgoI2hkxtSJAgAABAgQIECBAgAABAoK2HSBAgAABAgQIECBAgAABAhkFBO2MmFoRIECAAAECBAgQIECAAAFB2w4QIECAAAECBAgQIECAAIGMAoJ2RkytCBAgQIAAAQIECBAgQICAoG0HCBAgQIAAAQIECBAgQIBARgFBOyOmVgQIECBAgAABAgQIECBAQNC2AwQIECBAgAABAgQIECBAIKOAoJ0RUysCBAgQIECAAAECBAgQIFAP2hsbGw9qtdqLlpaWaqVS+bsZTZx/u1qttsT5h5OTky/xESBAgAABAgQIECBAgAABAo0C9aC9trb2fHBw8OOBgYH/NTo8PEz7+/ub09PTj2ESIECAAAECBAgQIECAAAECtwft2ujo6Bv57O7upgjaHjt/Iy0XESBAgAABAg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QIECBQuICgXfgCGJ8AAQIECBAgQIAAAQIE8goI2nk9dSNAgAABAgQIECBAgACBwgUE7cIXwPgECBAgQIAAAQIECBAgkFdA0M7rqRsBAgQIECBAgAABAgQIFC7wL2ZBvTF762p3AAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_1f560dfdc0f54c48b39d29c3becf0f9b\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_b1841252e7564c029563ba4eac893ab9\"],\"layout\":\"IPY_MODEL_dd1298945da7404d92eae7e43fd8d481\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "interact(f);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## `interactive`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "In addition to `interact`, IPython provides another function, `interactive`, that is useful when you want to reuse the widgets that are produced or access the data that is bound to the UI controls."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Here is a function that returns the sum of its two arguments."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "def f(a, b):\n",
    "    return a+b"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Unlike `interact`, `interactive` returns a `Widget` instance rather than immediately displaying the widget."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "w = interactive(f, a=10, b=20)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The widget is a `Box`, which is a container for other widgets."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "ipywidgets.widgets.widget_box.Box"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(w)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The children of the `Box` are two integer-valued sliders produced by the widget abbreviations above."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(<ipywidgets.widgets.widget_int.IntSlider at 0x7fc0f88ea828>,\n",
       " <ipywidgets.widgets.widget_int.IntSlider at 0x7fc0f918cef0>)"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "w.children"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "To actually display the widgets, you can use IPython's `display` function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABRCAYAAAAtiN7BAAAPKklEQVR4Xu3dW2hceR0H8GnS0NramqgVrHiJblWStqS0BVFWd1XQB33Ul1VEwRv4JCKIiq6IPggqPogiar3hDbygeMeNuypqW9K1BtEgVSx9ElJ6sU2bzPj7LTPupmr+03UuZ+Z8DvyYmZx/z/////xPIN+eMzPbGjYCBAgQIECAAAECBAgQIECgZwLbenYkByJAgAABAgQIECBAgAABAgQagraTgAABAgQIECBAgAABAgQI9FBA0O4hpkMRIECAAAECBAgQIECAAAFB2zlAgAABAgQIECBAgAABAgR6KCBo9xDToQgQIECAAAECBAgQIECAgKDtHCBAgAABAgQIECBAgAABAj0UELR7iOlQBAgQIECAAAECBAgQIEBA0HYOECBAgAABAgQIECBAgACBHgoI2j3EdCgCBAgQIECAAAECBAgQICBoOweGJrC8v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gQIDDKAsLLKK/eCI99eXn5zgjZ95emkEF8586dM7OzsxdLbe0nQIAAAQIECBAgQIBAFQQE7SqsgjEQIECAAAECBAgQIECAwNgICNpjs5QmQoAAAQIECBAgQIAAAQJVEBC0q7AKxkCAAAECBAgQIECAAAECYyMgaI/NUpoIAQIECBAgQIAAAQIECFRBQNCuwioYAwECBAgQIECAAAECBAiMjYCgPTZLaSIECBAgQIAAAQIECBAgUAUBQbsKq2AMBAgQIECAAAECBAgQIDA2AoL22CyliRAgQIAAAQIECBAgQIBAFQT+BfveOX+nuC48AAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_d4f11ec882594c148f41017b26acc38c\",\"min\":-10,\"description\":\"a\",\"max\":30,\"value\":10},{},{\"layout\":\"IPY_MODEL_c3ef5cef14ef4b5891d3fa70d669054c\",\"min\":-20,\"description\":\"b\",\"max\":60,\"value\":20},{},{\"children\":[\"IPY_MODEL_6866c7c2a0e94e609d0f6ef55f1abd95\",\"IPY_MODEL_18da3d51b6814576b2ebcadf034accb4\"],\"layout\":\"IPY_MODEL_b526d766e3424be49f7d8b3d6021314f\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "30"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from IPython.display import display\n",
    "display(w)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "At this point, the UI controls work just like they would if `interact` had been used. You can manipulate them interactively and the function will be called. However, the widget instance returned by `interactive` also give you access to the current keyword arguments and return value of the underlying Python function.\n",
    "\n",
    "Here are the current keyword arguments. If you rerun this cell after manipulating the sliders, the values will have changed."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'a': 10, 'b': 20}"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "w.kwargs"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Here is the current return value of the function."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "30"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "w.result"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Disabling continuous updates"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When interacting with long running functions, realtime feedback is a burden instead of being helpful.  See the following example:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def slow_function(i):\n",
    "    print(int(i),list(x for x in range(int(i)) if \n",
    "                str(x)==str(x)[::-1] and \n",
    "                str(x**2)==str(x**2)[::-1]))\n",
    "    return"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1000000 [0, 1, 2, 3, 11, 22, 101, 111, 121, 202, 212, 1001, 1111, 2002, 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102, 100001, 101101, 110011, 111111, 200002]\n",
      "CPU times: user 1.08 s, sys: 0 ns, total: 1.08 s\n",
      "Wall time: 1.08 s\n"
     ]
    }
   ],
   "source": [
    "%%time\n",
    "slow_function(1e6)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Notice that the output is updated even while dragging the mouse on the slider. This is not useful for long running functions due to lagging:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHj0lEQVR4Xu3dTWhcVRgG4JlkRutCLLiUakXB0GmnbawbcVHduRBRVBARoSK6EnThwipWENSdiAiKSDcu3LnQdZe6sFgNRalgKqhgwZ82rWman/E7ZQZCTXNmzHFyr30GPqblfDn3zHPuQF7uzE2z4UGAAAECBAgQIECAAAECBAgUE2gWm8lEBAgQIECAAAECBAgQIECAQEPQdhIQIECAAAECBAgQIECAAIGCAoJ2QUxTESBAgAABAgQIECBAgAABQds5QIAAAQIECBAgQIAAAQIECgoI2gUxTUWAAAECBAgQIECAAAECBARt5wABAgQIECBAgAABAgQIECgoIGgXxDQVAQIECBAgQIAAAQIECBAQtJ0DBAgQIECAAAECBAgQIECgoICgXRDTVAQIECBAgAABAgQIECBAQNAudA7Mzs5unZub252bbnJy8nSn0zmW6zNOgAABAgQIECBAgAABAvUUELQL7duJEyd6i4uL2dl6vV5jZWXlgW63+0m2WQMBAgQIECBAgAABAgQI1E5A0C6wZTMzM/tbrdaRiYmJ7GwRslPQbsRVbfZZLQ0ECBAgQIAAAQIECBCon4CwV2DPUtBut9tHms08p6BdANwUBAgQIECAAAECBAgQqLBAPhlWePFVWZqgXZWdsA4CBAgQIECAAAECBAhsvoCgXWAPBO0CiKYgQIAAAQIECBAgQIDA/0RA0M5v5KvRcm3U85drFbTziDoIECBAgAABAgQIECBwpQgI2vmdno6Wq6K+ELTzWDpqI9COlR6IejzqrktWfUv8/2DUb1F/Rb2yanzcY7UBtVACBAgQIECAAAECAwFBu8C54Ip2AURTjFtgKg74aNQTUdtXHbwV//4m6v6o76PeiZqJei9q3GPjNnE8AgQIECBAgAABAkUEBO0CjIJ2AURTbIbAPXHQDy8J2g/H/w9FdfoLui+e3466OWrcY5th4pgECBAgQIAAAQIENiwgaK9PuCOGX4z6PerZy7UK2hs+D02wOQL747CHLwna6cr1jVH39pd0Wzx/1+9J74Vxjv24OSyOSoAAAQIECBAgQ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2BLBkF7cnIyO1sK2UtLS4J2VkoDAQIECBAgQIAAAQIE6ikgaBfYt9nZ2a3nz5//I91NfL2r2ulj4+l73KlvamqKfQF7UxAgQIAAAQIECBAgQKBqAsJeoR05fvz4nrii/VW6Yr3eI8afixuhvVXosKYhQIAAAQIECBAgQIAAgYoJCNoV2xDLIUCAAAECBAgQIECAAIF6Cwja9d4/qydAgAABAgQIECBAgACBigkI2hXbEMshQIAAAQIECBAgQIAAgXoLCNr13j+rJ0CAAAECBAgQIECAAIGKCQjaFdsQyyFAgAABAgQIECBAgACBegsI2vXeP6snQIAAAQIECBAgQIAAgYoJCNoV2xDLIUCAAAECBAgQIECAAIF6Cwja9d4/qydAgAABAgQIECBAgACBign8DU/j3z8TQAhdAAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_e3d87c8ce8a242369de7070993b5d113\",\"min\":100000,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"children\":[\"IPY_MODEL_c66599dec86d4a5db04cc8e6079ff2de\"],\"layout\":\"IPY_MODEL_dba0d9bbc45c4e0bbef339527d7aa2ac\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "100000 [0, 1, 2, 3, 11, 22, 101, 111, 121, 202, 212, 1001, 1111, 2002, 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102]\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<function __main__.slow_function>"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from ipywidgets import FloatSlider\n",
    "interact(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "There are two ways to mitigate this.  You can either only execute on demand, or restrict execution to mouse release events."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### `__manual`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The `__manual` kwarg of interact allows you to restrict execution so it is only done on demand.  A button is added to the interact controls that allows you to trigger an execute event."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABTCAYAAABgQH/KAAARu0lEQVR4Xu3dCYwU1Z8H8DfAzEp0I2aN8RYVr+EWMMYLj3hrvDcar4i38Yoar3UV433E+44HiRdGjbfGREXFZE0EQRAViKKJZ+KBCDICwtavlp7g7EA3f6p7uodPJS8DVPWvXn1eT8K336vqpmQjQIAAAQIECBAgQIAAAQIEChNoKqySQgQIECBAgAABAgQIECBAgEAStL0JCBAgQIAAAQIECBAgQIBAgQKCdoGYShEgQIAAAQIECBAgQIAAAUHbe4AAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQKCdoGYShEgQIAAAQIECBAgQIAAAUHbe4AAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQKCdkGY06ZNG5KVmlSuXFNTU2ptbeVeDsp+AgQIECBAgAABAgQINKiAwFfAwM2aNatPW1vbb5WUWrx4cRK2K5FyDAECBAgQIECAAAECBBpTQNAuYNymTp26e3Nz87gI0OW2CNrR+vfvX/7gcsXsJ0CAAAECBAgQIECAAIG6ExD2ChgSQbsARCUIECBAgAABAgQIECDQTQQE7QIGUtAuAFEJAgQIECBAgAABAgQIdBMBQbuAgRS0C0BUggABAgQIECBAgAABAt1EQNAuP5BXZ4f8e9YuWN6hgnZ5REcQIECAAAECBAgQIEBgdREQtMuP9Pb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q4GEG7PsZBLwgQIECAAAECBAgQ6BqBqgbtzz//PF133XVp7ty5ab/99kvffvtt+v3339Oll16aNtpoo6pf8Zdffpluu+22tOeee6Yjjjii6ud78cUX0/z589NLL72UTj311LTXXntV5ZxHHnlkuuWWW9Lmm29elfqrWlTQXlVBrydAgAABAgQIECBAoJEFqhq0AyaC7o8//phuvvnm3Oncc89NbW1t6aGHHqqJ20UXXZR23HHHFOG0mttXX32V7rzzzrzFn3/99dc0fPjwQk75888/p6lTp6Y99tgjrxf1N9tss9SzZ89C6hddRNAuWlQ9AgQIECBAgAABAgQaSaDqQfuOO+5I33//fXvQvuuuu9Kbb76ZXnvttZo4XXHFFWnIkCFVD9pvvPFGGjduXPt1FnVxCxYsSBdeeGE66KCD0r777ltU2arWEbSryqs4AQIECBAgQIAAAQJ1LlDToB2zvCeddFLaf//90xlnnJEvKX/44YfThAkT0hNPPJGmTZuWzjvvvHTjjTemPn36pFtvvTXttttuacaMGenjjz9O55xzTtp77707JY1Z8qi13nrrpWeeeSbddNNNqV+/fqlj0H788cdTc3Nzvox9rbXWSqeddlp+/gsuuCA/9y677JKuvPLK1NTUlG644Yb858UXX5y3rbfeutNzf/LJJ2ns2LFp1qxZ6cADD0w77LBDPrMdx59//vnplVdeSVdffXV+nvfeey/dfvvt+b/HUvNvvvkmxYcRMUM9Z86c9Oyzz6Y111wzvfPOO3l/Fi5cmC+/b21tzZfAL1myJN1zzz25Td++fXPDuKZ11lknffrpp/msdyxZX9F5qv2eFLSrLaw+AQIECBAgQIAAAQL1LFCToB3BK8Jn3Lt81VVXpV133bXdJMJnBM0I2rEdd9xxeQiNZddnnnlm2nbbbfPA+frrr6eXX345PfDAA516vvvuu3mQjaXiU6ZMycPqlltu+Y+gHYH366+/zgN76VyHHHJIOuqoo9K1116b3zceHwR88MEH6e67784DewT4559/Ph177LErHMeoPX78+PYZ7QcffDC/Xzuu5c8//8w/MIj+LV68OO200055UI5Qf80116T1118/v6c77l0/5ZRT8g8I4ty//fZb/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FvMqMcMdQTqSy65JA/OEarjXu5wiv7GOcOt9FC2COZx7THTHa8Lt1geHsvgo+/xveRhu+GGG+YPRIsHsI0cOTL/MGN554k+VXOzdLyaumoTIECAAAECBAgQIFDvAlUN2vV+8fpXHQFBuzquqhIgQIAAAQIECBAg0BgCgnZjjFND9VLQbqjh0lkCBAgQIECAAAECBAoWELQrBI3vtY7v+e5si4elxXdy2/5PQND2TiBAgAABAgQIECBAYHUWELRX59Gv0rUL2lWCVZYAAQIECBAgQIAAgYYQELQbYpgaq5OCdmONl94SIECAAAECBAgQIFCsgKBdrKdqmYCg7W1AgAABAgQIECBAgMDqLCBor86jX6VrF7SrBKssAQIECBAgQIAAAQINISBoN8QwNVYnBe3GGi+9JUCAAAECBAgQIECgWAFBu1hP1TIBQdvbgAABAgQIECBAgACB1VlA0F6dR79K1y5oVwlWWQIECBAgQIAAAQIEGkKgPWhPmTJlSb9+/VLv3r0bouM6WZ8CbW1taebMmWnQoEHt76367KleESBAgAABAgQIECBAoDoC7WEom4Xctbm5+b0FCxYISNWxXi2qtrS0LMm2kYMHDx6/WlywiyRAgAABAgQIECBAgEAHAaHaW4IAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQKCdoGYShEgQIAAAQIECBAgQIAAAUHbe4AAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQL/C15NCa4apmyvAAAAAElFTkSuQmCC",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_083b40422aa7415d8fc36cbd14fb3e9a\",\"min\":100000,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"layout\":\"IPY_MODEL_dd65f2186b914530b9d59f84de65b67d\",\"description\":\"Run slow_function\"},{},{\"children\":[\"IPY_MODEL_39587b25c64e4b3884a7e45290af1f48\",\"IPY_MODEL_9ffaa0f372bc494bb66a6fe1585ca021\"],\"layout\":\"IPY_MODEL_aaaf79ab3ddd40dda9be3499a957f79b\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "<function __main__.slow_function>"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "interact(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5),__manual=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### `continuous_update`"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you are using slider widgets, you can set the `continuous_update` kwarg to `False`.  `continuous_update` is a kwarg of slider widgets that restricts executions to mouse release events."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHe0lEQVR4Xu3dTWhcVRgG4Jk2kxCoWJGuLKZBQcmksdq6ERfVnQsRRAUpItSFrly4cKEVKwjqTkQEXUgFXbhyo2vBjS4s1oQSQeoPqOBCCf0PbTJ+p8yFkDY5E3I6ubc+Ax/T9Jz57pnnzEBe7uROu+VGgAABAgQIECBAgAABAgQIFBNoF+ukEQECBAgQIECAAAECBAgQINAStL0ICBAgQIAAAQIECBAgQIBAQQFBuyCmVgQIECBAgAABAgQIECBAQND2GiBAgAABAgQIECBAgAABAgUFBO2CmFoRIECAAAECBAgQIECAAAFB22uAAAECBAgQIECAAAECBAgUFBC0C2JqRYAAAQIECBAgQIAAAQIEBG2vAQIECBAgQIAAAQIECBAgUFBA0C6IqRUBAgQIECBAgAABAgQIEBC0vQYIECBAgAABAgQIECBAgEBBAUG7EOapU6d658+fz3Z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iOOm6BPNR6bu10xnlD6JORKVrFQx7bKNP33wCBAgQIECAAAECtRAY5JfxWix0ixZxZxz3s6jxqKei0tWXr7pVQfvMmTPZZaYQNDIy0tqxY8c32ckmENigwMLCwhf79+9/d4CH7Yk5L0cd7tfncb/Uf9y+uE9X2f8zajHqzRX9hj02wFMxhQABAgQIECBAgEC9BATtAvtRBe2zZ89mu1VBe2Zmhn1WywQCBAgQIECAAAECBAg0T0DYK7BnVdA+d+5ctlu73b5yRlvQzlKZQIAAAQIECBAgQIAAgUYKCNoFtq0K2hcupK/bXv+WgnY6qy1o56SMEyBAgAABAgQIECBAoJkCgnaBfauCdroQ1SC3FLT37t3LfhAscwgQIECAAAECBAgQINAwAWGvwIZVQfvSpUsDdxO0B6YykQABAgQIECBAgAABAo0SELQLbFcVtJeWqos2r9201+tdGZyenmZfwF4LAgQIECBAgAABAgQI1E1A2CuwI1XQrkL0ei3TnOXlZUG7gLsWBAgQIECAAAECBAgQqKOAoF1gV6qgnS50lrulkJ2q2+3mJ+eaGSdAgAABAgQIECBAgACB2gkIewW2pAra27dvz3ZLIfvy5cuCdlbKBAIECBAgQIAAAQIECDRTQNAusG/z8/N7IkD/OjY21sqd1U4XTEthe2pqin0Bey0IECBAgAABAgQIECBQNwFhr9COzM7OHoqv7fo093fa6az3+Pj4LZOTkwuFDq0NAQIECBAgQIAAAQIECNRIQNCu0WZYCgECBAgQIECAAAECBAg0X0DQbv4eegYECBAgQIAAAQIECBAgUCMBQbtGm2EpBAgQIECAAAECBAgQINB8AUG7+XvoGRAgQIAAAQIECBAgQIBAjQQE7RpthqUQIECAAAECBAgQIECAQPMFBO3m76FnQIAAAQIECBAgQIAAAQI1EhC0a7QZlkKAAAECBAgQIECAAAECzRcQtJu/h54BAQIECBAgQIAAAQIECNRI4D+HVcY/JaIfIAAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_9ba96e0407474665a5497c2dd560d6d2\",\"min\":100000,\"continuous_update\":false,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"children\":[\"IPY_MODEL_5a713f74a14e46e1ac6031dfc866d091\"],\"layout\":\"IPY_MODEL_513ddc8723214bf98f8509cdc81a1c27\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "100000 [0, 1, 2, 3, 11, 22, 101, 111, 121, 202, 212, 1001, 1111, 2002, 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102]\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<function __main__.slow_function>"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "interact(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5,continuous_update=False))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Arguments that are dependent of each other"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Arguments that are dependent of each other can be expressed manually using `observe`.  See the following example, where one variable is used to describe the bounds of another.  For more information, please see the [widget events example notebook](./Widget Events.ipynb)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABRCAYAAAAtiN7BAAAN0klEQVR4Xu3db2hdZx0H8JN//YNurSOCRiuDGQhNmrWsoEOUDUH2SjYVUdE3ooIy/2w4Gf7dC0GUDec2BMX5Z8pUfDNhvhIt6IuBtHYaOrRVU6VSsNotSWtu0iTX3zNyobUl5+bm2c05934O/EiX+5wnz/N5zoX73Tn3nIHCRoAAAQIECBAgQIAAAQIECGQTGMjWk44IECBAgAABAgQIECBAgACBQtB2EBA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ECBAgQIECAAAECBAgI2o4BAgQIECBAgAABAgQIECCQUUDQzoipKwIECBAgQIAAAQIECBAgIGg7BggQIECAAAECBAgQIECAQEaB/wHSo+5wbncgigAAAABJRU5ErkJggg==",
      "text/html": [
       "<img src= class=\"jupyter-widget\">\n",
       "<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_91356fb3691e4774a486ef0cdfb32bbf\",\"description\":\"x\",\"max\":10,\"step\":0.05},{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_9a8ad7859cea4387ac12174dd86956f0\",\"min\":0.5,\"description\":\"y\",\"max\":10,\"step\":0.05,\"value\":5},{},{\"children\":[\"IPY_MODEL_cb02672795334bc2bf63c70b8231df66\",\"IPY_MODEL_544222bf8c76477ea09e3eda73509027\"],\"layout\":\"IPY_MODEL_0aab97e937ad45879a74558a03d6f71b\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
      ]
     },
     "metadata": {
      "isWidgetSnapshot": true
     },
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0.0 5.0\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<function __main__.printer>"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "x_widget = FloatSlider(min=0.0, max=10.0, step=0.05)\n",
    "y_widget = FloatSlider(min=0.5, max=10.0, step=0.05, value=5.0)\n",
    "\n",
    "def update_x_range(*args):\n",
    "    x_widget.max = 2.0 * y_widget.value\n",
    "y_widget.observe(update_x_range, 'value')\n",
    "\n",
    "def printer(x, y):\n",
    "    print(x, y)\n",
    "interact(printer,x=x_widget, y=y_widget)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.3+"
  },
  "widgets": {
   "state": {
    "083b40422aa7415d8fc36cbd14fb3e9a": {
     "views": []
    },
    "084b035221624296a32efc02d6ca4d1c": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 16,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIMklEQVR4Xu3cT2iV6RUH4DOYWAMBceHGKa6CuigBTUKLOoiKWsGFqBQLRUTc2I1/EFEpRRHtQkEt1UUVlIpOBd2JglCkdKlWFKmILiyCQlWUaUrQJKbfvWhxxj/J5J5b59Un8CL5cr/znTznzeX+/G7yRfggQIAAAQIECBAgQIAAAQIE0gS+SKukEAECBAgQIECAAAECBAgQIBCCtk1AgAABAgQIECBAgAABAgQSBQTtREylCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBRAFBOxFTKQIECBAgQIAAAQIECBAgIGjbAwQIECBAgAABAgQIECBAIFFA0E7EVIoAAQIECBAgQIAAAQIECAjaSXvg6tWrX7W2tv71xYsXTJNMlSlPoL29PXp7e5vW+NixY4f6+/vndHV1/a1pF1GYAAECBAgQIECAQIMCQmGDgK9Pv3HjxlBHR0e0tbUlVVSGQHkC1X84RRWCm9Z4X19f3L17Nzo7Oz13NU1ZYQIECBAgQIAAgUYFvFhtVPDV+VeuXBlqZsBIalMZAk0VaHbQrjVfu0Z3d7fnrqZOUnECBAgQIECAAIFGBLxYbUTvjXMF7SRIZYoWELSLHp/mCRAgQIAAAQIEkgQE7SRIQTsJUpmiBQTtoseneQIECBAgQIAAgSQBQTsJUtBOglSmaAFBu+jxaZ4AAQIECBAgQCBJQNBOghS0kyCVKVpA0C56fJonQIAAAQIECBBIEhC0kyAF7SRIZYoWELSLHp/mCRAgQIAAAQIEkgQE7SRIQTsJUpmiBQTtosene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Bd3RtgEJECBAgAABAgR+6AKC9rcnVHtP8aZq1f5i1jfVqv0i6c+qtbZaX39omIJ2c7f6rVu3YtOmTbF8+fJYu7Y2johLly7V72AvWLCg/nvZtaD9ZmB7+vRp7Ny5MyZNmlT/g2hTpkyJOXPmNLfRz7z69w3ao+EStEej5hwCBAgQIECAAIH/p4CgnaQtaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkIJ2EqQyRQsI2kWPT/MECBAgQIAAAQJJAoJ2EqSgnQSpTNECgnbR49M8AQIECBAgQIBAkoCgnQQpaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkIJ2EqQyRQsI2kWPT/MECBAgQIAAAQJJAoJ2EqSgnQSpTNECgnbR49M8AQIECBAgQIBAkoCgnQQpaCdBKlO0gKBd9Pg0T4AAAQIECBAgkCQgaCdBCtpJkMoULSBoFz0+zRMgQIAAAQIECCQJCNpJkNeuXRuaOnVqtLW1JVVUhkB5As0O2n19fXH79u2YPn26567ytoeOCRAgQIAAAQKfjYAXq0mjvnz58sqWlpavBwcHkyoqQ6A8gfb29ujt7W1a42PGjImBgYFf9vT0/LlpF1GYAAECBAgQIECAQIMCgnaDgE4nQIAAAQIECBAgQIAAAQJvCgja9gMBAgQIECBAgAABAgQIEEgUELQTMZUiQIAAAQIECBAgQIAAAQKCtj1AgAABAgQIECBAgAABAgQSBQTtREylCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBRAFBOxFTKQIECBAgQIAAAQIECBAg8F8I2yxOrCaRFwAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_14f466c7ce7f47e08781c1dd169f5af0\",\"_options_labels\":[\"two\",\"one\"],\"description\":\"x\",\"value\":\"two\"},{},{\"children\":[\"IPY_MODEL_52834a393c7d418abe29403ff60c5276\"],\"layout\":\"IPY_MODEL_83fb6e72950b459899c35905fefe839f\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "20"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x={'one': 10, 'two': 20});"
       },
       "cell_index": 38,
       "root": true
      }
     ]
    },
    "08a9a234b3974b79ab3cc21221683caa": {
     "views": []
    },
    "0aab97e937ad45879a74558a03d6f71b": {
     "views": []
    },
    "0c95bb3a5d64456693f35935c9c1b4a2": {
     "views": []
    },
    "0dbfdeb58ada42a496e24893c18dda1b": {
     "views": []
    },
    "100d37d7468b4b058bacf2859184b51f": {
     "views": []
    },
    "12d1ce5e84c14f85bb63e387bed88c62": {
     "views": []
    },
    "145bcbeaedd04587afdf0f97e64a62b3": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 23,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF10lEQVR4Xu3dPUhkZxQG4G/8IYIRRkRMsZLGMmgak1gEwYWQcgmYwh+yhlSxSAg2EkkTIY3FElJto7uMhnQRbWNrIQRSmCpFgk3UwtUlOKBojq4MO3jXZr/uPgMvwpU5cB/OFC937p1K8iJAgAABAgQIECBAgAABAgSyCVSyTTKIAAECBAgQIECAAAECBAgQSIq2JSBAgAABAgQIECBAgAABAhkFFO2MmEYRIECAAAECBAgQIECAAAFF2w4QIECAAAECBAgQIECAAIGMAop2RkyjCBAgQIAAAQIECBAgQICAom0HCBAgQIAAAQIECBAgQIBARgFFOyOmUQQIECBAgAABAgQIECBAQNG2AwQIECBAgAABAgQIECBAIKOAop0R0ygCBAgQIECAAAECBAgQIKBo2wECBAgQIECAAAECBAgQIJBRQNHOiGkUAQI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IAAAQIECBAg0CSgaFsIAgQIECBAgAABAgQIECCQUUDRzohpFAECBAgQIECAAAECBAgQULTtAAECBAgQIECAAAECBAgQyCigaGfENIoAAQIECBAgQIAAAQIECCjadoAAAQIECBAgQIAAAQIECGQUULQzYhpFgAABAgQIECBAgAABAgQUbTtAgAABAgQIECBAgAABAgQyCijaGTGNIkCAAAECBAgQIECAAAECirYdIECAAAECBAgQIECAAAECGQUU7YyYRhEgQIAAAQIECBAgQIAAAUXbDhAgQIAAAQIECBAgQIAAgYwCinZGTKMIECBAgAABAgQIECBAgICibQcIECBAgAABAgQIECBAgEBGAUU7I6ZRBAgQIECAAAECBAgQIEBA0bYDBAgQIECAAAECBAgQIEAgo4CinRHTKAIECBAgQIAAAQIECBAg8D8H+LsxvYhB8QAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_0dbfdeb58ada42a496e24893c18dda1b\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_8b083981295644fcaf92773d8155ba4b\"],\"layout\":\"IPY_MODEL_9ddc71f5707b4dac89497a9b209149be\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "True"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f);"
       },
       "cell_index": 43,
       "root": true
      }
     ]
    },
    "14f466c7ce7f47e08781c1dd169f5af0": {
     "views": []
    },
    "16232cf8f4b2464a9bc0fe401ad506c4": {
     "views": []
    },
    "18da3d51b6814576b2ebcadf034accb4": {
     "views": []
    },
    "1dd6c2f0eb1b450fb55fb6bf78fbcc7f": {
     "views": []
    },
    "1deaaefe0e8a470bba99889317c8a1fd": {
     "views": []
    },
    "1f560dfdc0f54c48b39d29c3becf0f9b": {
     "views": []
    },
    "2d04cb4fe8ad418aa8e3903f34b6f34d": {
     "views": []
    },
    "32a900c49fa34629a165bc64ff982ee8": {
     "views": []
    },
    "39587b25c64e4b3884a7e45290af1f48": {
     "views": []
    },
    "3e026880026346e7a827527e14b3f3f5": {
     "views": []
    },
    "3e775a5256524c7d84998c84ae34daf2": {
     "views": []
    },
    "3e89efcf10924434801060cdb750dfd2": {
     "views": []
    },
    "40cf93a86f2f4555a03cdc301d852885": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 9,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAH/0lEQVR4Xu3dT2gcVRwH8Em3S/8cSkERRLE3K/mHaSN6EQRBPejFgygoVBEVPRQ8ePEP1YMePCgiHhS1FaSKoJdexagnbWOhVUtQCMXiQTy1CW1Mu+vv6S60UTJbOpnM7HwWfmzSfXnz3ue9Lfkys5ORzIMAAQIECBAgQIAAAQIECBAoTGCksJ50RIAAAQIECBAgQIAAAQIECGSCtk1AgAABAgQIECBAgAABAgQKFBC0C8TUFQECBAgQIECAAAECBAgQELTtAQIECBAgQIAAAQIECBAgUKCAoF0gpq4IECBAgAABAgQIECBAgICgbQ8QIECAAAECBAgQIECAAIECBQTtAjF1RYAAAQIECBAgQIAAAQIEBG17gAABAgQIECBAgAABAgQIFCggaBeIqSsCBAgQIECAAAECBAgQICBo2wMECBAgQIAAAQIECBAgQKBAAUG7QExdDS4wPz+/fWFhYW+r1dq32k91Op094+PjBwbvWUsCBAgQIECAAAECBAisr4Cgvb7+jT36iRMnuhGis5GR1bdgt9vNot3LExMTqwbyxkKaOAECBAgQIECAAAEClRMQtCu3JMM/oOPHj9/Rbre/ygvZSSKF8VRjY2P26vBvDTMkQIAAAQIECBAgMBQCwstQLGO9JiFo12u9jJYAAQIECBAgQIAAgcsTELQvz0vrAgQE7QIQdUGAAAECBAgQIECAQGUFBO3KLs3wDkzQHt61NTMCBAgQI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q3TTwRO946f+UV6P+ikqXkr9x0WtrPCTdEyBAgAABAgQIEKiGgKBdjXVo1Cj6dx1fWFjInXc/aJf0mePc8WhAgAABAgQIECBAgACBPAFBO0/I64UL9IN2uoQ875HuTJ7OaAvaeVJeJ0CAAAECBAgQIECgKgKCdlVWokHj6AftQf5kVwra6ay2oN2gDWKqBAgQIECAAAECBGouIGjXfAHrOPx+0I6/9zzQ8FPQnpiYsFcH0tKIAAECBAgQIECAAIH1FhBe1nsFGnj8ftC+nBucCdoN3CimTIAAAQIECBAgQKCmAoJ2TReuzsPuB+1B7tAed9D+Z6rj4+P2ap0X3dgJECBAgAABAgQINEhAeGnQYldlqv2g3Q/Rq40rtel0OoJ2VRbPOAgQIECAAAECBAgQyBUQtHOJNChaoB+0043O8h4pZKcaGxvLb5zXmdcJECBAgAABAgQIECBQgoDwUgKyQ1wq0A/arVYrlyaF7PPnzwvauVIaECBAgAABAgQIECBQFQFBuyor0aBx9IN2u93OnXX6HHcK2qOjo/ZqrpYGBAgQIECAAAECBAhUQUB4qcIqNHAMc3Nz8fHrbpZ3+XgK2nFW+5m4Gdo7DWQyZQIECBAgQIAAAQIEaiggaNdw0YZhyPPz89sXFxf3RNjenjOfmfjTXjPDMGdzIECAAAECBAgQIECgGQKCdjPW2SwJECBAgAABAgQIECBAoCQBQbskaIchQIAAAQIECBAgQIAAgWYICNrNWGezJECAAAECBAgQIECAAIGSBATtkqAdhgABAgQIECBAgAABAgSaISBoN2OdzZIAAQIECBAgQIAAAQIEShIQtEuCdhgCBAgQIECAAAECBAgQaIaAoN2MdTZLAgQIECBAgAABAgQIEChJ4G83j50/PqAvawAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_ee976feeed2144dcbfdbf7c7d6ebabda\",\"min\":-10,\"description\":\"x\",\"max\":30,\"value\":10},{},{\"children\":[\"IPY_MODEL_08a9a234b3974b79ab3cc21221683caa\"],\"layout\":\"IPY_MODEL_fc4b5b4835c54b7a85e7b4ddb03d1dc1\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "10"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=widgets.IntSlider(min=-10,max=30,step=1,value=10));"
       },
       "cell_index": 23,
       "root": true
      }
     ]
    },
    "4295d38da2914cf093a19fd7ae047f07": {
     "views": []
    },
    "4c3a1581ec6f4cb68b75ce1e7fe9d35e": {
     "views": []
    },
    "4cc38bf3e52845db92e14b092a74f786": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 26,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF60lEQVR4Xu3dPUhkZxQG4G/8IbpBtFC02GIFOwOmSyyCiwshXZaAAf8ghK1iEQg2gqQS0liEkCqkWNY/0q1oG9nOLiSFqQLuYgoVQTQkWs3kKMuQwTFu8XXfIxxk7r0eOA9nipd7uVaSHwIECBAgQIAAAQIECBAgQCCbQCVbJ40IECBAgAABAgQIECBAgACBJGhbAgIECBAgQIAAAQIECBAgkFFA0M6IqRUBAgQIECBAgAABAgQIEBC07QABAgQIECBAgAABAgQIEMgoIGhnxNSKAAECBAgQIECAAAECBAgI2naAAAECBAgQIECAAAECBAhkFBC0M2JqRYAAAQIECBAgQIAAAQIEBG07QIAAAQIECBAgQIAAAQIEMgoI2hkxtSJAgAABAgQIECBAgAABAoK2HSBAgAABAgQIECBAgAABAhkFBO2MmFoRIECAAAECBAgQIECAAAFB2w4QIECAAAECBAgQIECAAIGMAoJ2RkytCBAgQIAAAQIECBAgQICAoG0HCBAgQIAAAQIECBAgQIBARgFBOyOmVgQIECBAgAABAgQIECBAQNC2AwQIECBAgAABAgQIECBAIK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gQCCvgKCd11M3AgQIECBAgAABAgQIEChcQNAufAGMT4AAAQIECBAgQIAAAQJ5BQTtvJ66ESBAgAABAgQIECBAgEDhAoJ24QtgfAIECBAgQIAAAQIECBDIKyBo5/XUjQABAgQIECBAgAABAgQKFxC0C18A4xMgQIAAAQIECBAgQIBAXgFBO6+nbgQIECBAgAABAgQIECBQuICgXfgCGJ8AAQIECBAgQIAAAQIE8goI2nk9dSNAgAABAgQIECBAgACBwgUE7cIXwPgECBAgQIAAAQIECBAgkFdA0M7rqRsBAgQIECBAgAABAgQIFC7wL2ZBvTF762p3AAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_1f560dfdc0f54c48b39d29c3becf0f9b\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_b1841252e7564c029563ba4eac893ab9\"],\"layout\":\"IPY_MODEL_dd1298945da7404d92eae7e43fd8d481\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "True"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f);"
       },
       "cell_index": 47,
       "root": true
      }
     ]
    },
    "4d97a4cfa21c4e2093296aa03d792f65": {
     "views": []
    },
    "4f44ae0222c2426baaeec551960c104d": {
     "views": []
    },
    "50ca73d828744c69a5172abe27db5279": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 38,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHe0lEQVR4Xu3dTWhcVRgG4Jk2kxCoWJGuLKZBQcmksdq6ERfVnQsRRAUpItSFrly4cKEVKwjqTkQEXUgFXbhyo2vBjS4s1oQSQeoPqOBCCf0PbTJ+p8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0WZYCgECBAgQIECAAAECBAg0X0DQbv4eegYECBAgQIAAAQIECBAgUCMBQbtGm2EpBAgQIECAAAECBAgQINB8AUG7+XvoGRAgQIAAAQIECBAgQIBAjQQE7RpthqUQIECAAAECBAgQIECAQPMFBO3m76FnQIAAAQIECBAgQIAAAQI1EhC0a7QZlkKAAAECBAgQIECAAAECzRcQtJu/h54BAQIECBAgQIAAAQIECNRI4D+HVcY/JaIfIAAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_9ba96e0407474665a5497c2dd560d6d2\",\"min\":100000,\"continuous_update\":false,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"children\":[\"IPY_MODEL_5a713f74a14e46e1ac6031dfc866d091\"],\"layout\":\"IPY_MODEL_513ddc8723214bf98f8509cdc81a1c27\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "name": "stdout",
          "output_type": "stream",
          "text": "100000 [0, 1, 2, 3, 11, 22, 101, 111, 121, 202, 212, 1001, 1111, 2002, 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102]\n"
         },
         {
          "data": {
           "text/plain": "<function __main__.slow_function>"
          },
          "execution_count": 38,
          "metadata": {},
          "output_type": "execute_result"
         }
        ],
        "source": "interact(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5,continuous_update=False))"
       },
       "cell_index": 76,
       "root": true
      }
     ]
    },
    "513ddc8723214bf98f8509cdc81a1c27": {
     "views": []
    },
    "52834a393c7d418abe29403ff60c5276": {
     "views": []
    },
    "5307b74cb154463fa1e73e8d0782f05d": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 14,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw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ZBHrTjyuiFs240GqfaDA8PWyOFWhoQIECAAAECBAgQIEDgjIAQVaHVkAftEydOFM56cjLdqSnLli5dao0UamlAgAABAgQIECBAgAABQbuSayAP2vV6vXD++f2zh4aGBO1CLQ0IECBAgAABAgQIECAgaFdyDeRBO/+0eiqEPIwPDg4K2pVcLSZNgAABAgQIECBAgMClCghRlyrXg6+r1WpPDAwMrM9v3TXVFNLXy9OVx5csWWKN9OC5NmQCBAgQIECAAAECBDonIER1zr7tR969e/c1EaAP5l8LLxpABO1F8Yn2nqJ29hMgQIAAAQIECBAgQIDAGQFBu2KrIYXtuI/2aNG0582b9+uiRYsOFbWznwABAgQIECBAgAABAgTOFRC0rQgCBAgQIECAAAECBAgQIFCigKBdIqauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBEgUE7RIxdUWAAAECBAgQIECAAAECBARta4AAAQIECBAgQIAAAQIECJQoIGiXiKkrAgQIECBAgAABAgQIECAgaFsDBAgQIECAAAECBAgQIECgRIH/APqGiT/dgKE1AAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_1deaaefe0e8a470bba99889317c8a1fd\",\"description\":\"x\",\"max\":20,\"step\":0.5,\"value\":5.5},{},{\"children\":[\"IPY_MODEL_d1294656d023417c8deed30ebaa2bd55\"],\"layout\":\"IPY_MODEL_b56780580a2f40b79dd65c0621943d2d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "5.5"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "@interact(x=(0.0,20.0,0.5))\ndef h(x=5.5):\n    return x"
       },
       "cell_index": 34,
       "root": true
      }
     ]
    },
    "544222bf8c76477ea09e3eda73509027": {
     "views": []
    },
    "5a713f74a14e46e1ac6031dfc866d091": {
     "views": []
    },
    "5ae4f8a88dec43438f1f09c8d73db624": {
     "views": []
    },
    "5fea5451413e4bce878c6295f3d22638": {
     "views": []
    },
    "64314e1ab4f24e5e9bf778db00ad075c": {
     "views": []
    },
    "64d8005be8a94734b87d97af667b9eeb": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 10,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHnUlEQVR4Xu3dTWhcVRgG4JtMQ5suqhYULC5qoJskraktKIhQEEQENyK6EQRxJYI/SxFXgroQRdSFG8WNuFNw40Jc6qK1kRazqKUIpQuxVfsfmpnxOyUjqJAzgZuZM/c+Ax9pktNzv/OcE8ib+Zuq3AgQIECAAAECBAgQIECAAIHaBKZqm8lEBAgQIECAAAECBAgQIECAQCVoOwQECBAgQIAAAQIECBAgQKBGAUG7RkxTESBAgAABAgQIECBAgAABQdsZIECAAAECBAgQIECAAAECNQoI2jVimooAAQIECBAgQIAAAQIECAjazgABAgQIECBAgAABAgQIEKhRQNCuEdNUBAgQIECAAAECBAgQIEBA0HYGCBAgQIAAAQIECBAgQIBAjQKCdo2YpiJAgAABAgQIECBAgAABAoK2M0CAAAECBAgQIECAAAECBGoUELRrxDTV8AInT558vt/vf5j7H9PT09Xs7Ozeubm5X3NjfZ8AAQIECBAgQIAAAQIlCAjaJexCy3pYWVnZGyH7TKfTya682+1WvV6vWlxcdFazWgYQIECAAAECBAgQIFCCgPBSwi60rIcTJ04cmZmZ+W5qKn/8UshOtbCwkB/cMkfLJUCAAAECBAgQIECgTAHhpcx9aXRXgnajt9fiCBAgQIAAAQIECLReQNBu/REYPYCgPXpzVyRAgAABAgQIECBAYHQCgvborF1pXUDQdhQIECBAgAABAgQIEGiygKDd5N0tdG2CdqEboy0CBAgQIECAAAECBGoRELRrYTTJZgQE7c1oTcTYR6PL96Juj/oy6oW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AQIECBAgQIAAgUIEBO1CNqJNbQyC9urq6lDLTkF7//79zupQWgYRIECAAAECBAgQIDBuAeFl3DvQwusPgvaNGzeGXr2gPTSVgQQIECBAgAABAgQIjFlA0B7zBrTx8oOg3e12s8vv9/s3xywuLjqrWS0DCBAgQIAAAQIECBAoQUB4KWEXWtbDIGgPQvRGy09jer2eoN2yM2K5BAgQIECAAAECBCZZQNCe5N2b0N4HQTu90FnulkJ2qoWFhfzg3GS+T4AAAQIECBAgQIAAgREICC8jQHaJfwsMgnan08nSpJC9trYmaGelDCBAgAABAgQIECBAoBQBQbuUnWhRHysrK3sjQJ/ZsWNHdtUpZKfncs/PzzurWS0DCBAgQIAAAQIECBAoQUB4KWEXWtjD6dOn+1evXs2uPL21V9wOxkPHl7ODDSBAgAABAgQIECBAgEABAoJ2AZugBQIECBAgQIAAAQIECBBojoCg3Zy9tBICBAgQIECAAAECBAgQKEBA0C5gE7RAgAABAgQIECBAgAABAs0RELSbs5dWQoAAAQIECBAgQIAAAQIFCAjaBWyCFggQIECAAAECBAgQIECgOQKCdnP20koIECBAgAABAgQIECBAoAABQbuATdACAQIECBAgQIAAAQIECDRHQNBuzl5aCQECBAgQIECAAAECBAgUIPA3CmpyP0KHnUAAAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_f36023aeb25547548a5127e8414d5476\",\"description\":\"x\",\"max\":4,\"value\":2},{},{\"children\":[\"IPY_MODEL_9af66bf6fede431d980f5bd76f158678\"],\"layout\":\"IPY_MODEL_b57d53765bee453596885a27f6ccd755\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "2"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=(0,4));"
       },
       "cell_index": 26,
       "root": true
      }
     ]
    },
    "665a7cacacaa46f2b98d4d12c6865131": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 31,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABRCAYAAAAtiN7BAAAPKklEQVR4Xu3dW2hceR0H8GnS0NramqgVrHiJblWStqS0BVFWd1XQB33Ul1VEwRv4JCKIiq6IPggqPogiar3hDbygeMeNuypqW9K1BtEgVSx9ElJ6sU2bzPj7LTPupmr+03UuZ+Z8DvyYmZx/z/////xPIN+eMzPbGjYCBAgQIECAAAECBAgQIECgZwLbenYkByJAgAABAgQIECBAgAABAgQagraTgAABAgQIECBAgAABAgQI9FBA0O4hpkMRIECAAAECBAgQIECAAAFB2zlAgAABAgQIECBAgAABAgR6KCBo9xDToQgQIECAAAECBAgQIECAgKDtHCBAgAABAgQIECBAgAABAj0UELR7iOlQBAgQIECAAAECBAgQIEBA0HYOECBAgAABAgQIECBAgACBHgoI2j3EdCgCBAgQIECAAAECBAgQICBoOweGJrC8vLywsbHxuK0GsGfPngdnZ2cvDm2QOiZAgAABAgQIECBAgMBtCgjatwmmeW8EVlZWWmtra41t27Y+BVutVrZ54fz8/AO96dlRCBAgQIAAAQIECBAg0F8BQbu/vo7+XwTySvbExMRSVNGn2Ww2siJoO1eLWhoQIECAAAECBAgQIFAFAeGlCqtQszGcPXv2rqmpqftKV7OTRdCu2clhugQIECBAgAABAgTGQEDQHoNFHLUpCNqjtmLGS4AAAQIECBAgQIDA7QgI2rejpW1PBATtnjA6CAECBAgQIECAAAECFRUQtCu6MOM8LEF7nFfX3AgQIECAAAECBAgQELSdAwMXELQHTt6PDp8bB/1A1PejvnhLB++M10+KemLUR6KW+zEAxyRAgAABAgQIECBQVQFBu6orM8bjErRHfnEnYwZ3Rn0l6t1RJx4xo9fE85dFvTbqyVGLUQtR10Z+1iZAgAABAgQIECBAoEsBQbtLKM16JyBo985yyEe6P/r/3C1BO69evz/q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HnyrniRZdtCIN7H/oxdu3a97vLl/PysrbcM2tu3b2/cuHHj3lJb+x8SWDx+/PgiCwIECBAgQIAAAQIEhicgaA/PvrY9d77e68qVK0WDTtA+fPiwc7WopQEBAgQIECBAgAABAlUQEF6qsAo1G0MnaOd7tUtbfjJ5XtEWtEtS9hMgQIAAAQIECBAgUBUBQbsqK1GjcXSCdr5Pu7Rl0M6r2oJ2Scp+AgQIECBAgAABAgSqIiBoV2UlajSOTtDO73vuZsugfejQIedqN1jaECBAgAABAgQIECAwdAHhZehLUL8BdIJ2fvp4t5ug3a2UdgQIECBAgAABAgQIDFtA0B72CtSw/07Qzu98Lm2tVuuhJgcPHnSulrDsJ0CAAAECBAgQIECgEgLCSyWWoV6D6ATtTojeavbZptlsCtr1OkXMlgABAgQIECBAgMBICwjaI718ozn4TtDODzorbRmys+bn58uNSweznwABAgQIECBAgAABAgMQEF4GgKyLzQKdoD05OVmkyZC9vr4uaBelNCBAgAABAgQIECBAoCoCgnZVVqJG4zh37tx0fLXXagbt0lXtzhXtubk552qNzhFTJUCAAAECBAgQIDDKAsLLKK/eCI99eXn5zgjZ95emkEF8586dM7OzsxdLbe0nQIAAAQIECBAgQIBAFQQE7SqsgjEQIECAAAECBAgQIECAwNgICNpjs5QmQoAAAQIECBAgQIAAAQJVEBC0q7AKxkCAAAECBAgQIECAAAECYyMgaI/NUpoIAQIECBAgQIAAAQIECFRBQNCuwioYAwECBAgQIECAAAECBAiMjYCgPTZLaSIECBAgQIAAAQIECBAgUAUBQbsKq2AMBAgQIECAAAECBAgQIDA2AoL22CyliRAgQIAAAQIECBAgQIBAFQT+BfveOX+nuC48AAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_d4f11ec882594c148f41017b26acc38c\",\"min\":-10,\"description\":\"a\",\"max\":30,\"value\":10},{},{\"layout\":\"IPY_MODEL_c3ef5cef14ef4b5891d3fa70d669054c\",\"min\":-20,\"description\":\"b\",\"max\":60,\"value\":20},{},{\"children\":[\"IPY_MODEL_6866c7c2a0e94e609d0f6ef55f1abd95\",\"IPY_MODEL_18da3d51b6814576b2ebcadf034accb4\"],\"layout\":\"IPY_MODEL_b526d766e3424be49f7d8b3d6021314f\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "30"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "from IPython.display import display\ndisplay(w)"
       },
       "cell_index": 59,
       "root": true
      }
     ]
    },
    "6866c7c2a0e94e609d0f6ef55f1abd95": {
     "views": []
    },
    "69d1fc82db9b4f6b951d9d1b28dce41f": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 8,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHsElEQVR4Xu3dzWscZRwH8Nk2Ly2UGsXeKoRKLklaCC14UKQnEU9eBMGDBfGgqEcvKoj4F1jv9Q0VelUQBEUFTy3VBIxQQxVy9BD6kjRtkvX3SJaQgnk2dXZnducz8KMp+2Se5/k8TyDfzM5sq3AQIECAAAECBAgQIECAAAECpQm0SjuTExEgQIAAAQIECBAgQIAAAQKFoG0TECBAgAABAgQIECBAgACBEgUE7RIxnYoAAQIECBAgQIAAAQIECAja9gABAgQIECBAgAABAgQIEChRQNAuEdOpCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBEgUE7RIxnYoAAQIECBAgQIAAAQIECAja9gABAgQIECBAgAABAgQIEChRQNAuEdOpCBAgQIAAAQIECBAgQICAoG0PECBAgAABAgQIECBAgACBEgUE7RIxnap7gaWlpfbq6mr2G1qtVhE1NzMz80u2sQYECBAgQIAAAQIECBCogYCgXYNFaNoQFhcXJ7e2tq6NjIxkp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dnxX7lyZSIe2nUu7iV+Ltu44Q3C6ejm5ubsjRs3shIpaKc/YBw5cuTnbGMNipWVlYth9tHc3NxKnzgejX7Sk/rXo36KSs83mO9T37ohQIAAAQIECBAgUEsBQXv3stz71vFaLtqgD6rz8V43b97MTqUTtE+dOmWvZrU0IECAAAECBAgQIECgDgLCy+5V+Dr+m65mn6/D4gzrGDpBO92rnTvSk8nTFW1BOyfldQIECBAgQIAAAQIE6iIgaO+sxFPx5YWodI92+jzgP+qySMM2jk7QTvdp544UtNNVbUE7J+V1AgQIECBAgAABAgTqIiBo12UlGjSOTtBOD+7q5khB++TJk/ZqN1jaECBAgAABAgQIECBQuYDwUvkSNG8AnaCdnj7e7SFodyulHQECBAgQIECAAAECVQsI2lWvQAP77wTtePJ4dvbtdvvfNrOzs/ZqVksDAgQIECBAgAABAgTqICC81GEVGjaGTtDuhOi9pp/axMeBCdoN2yOmS4AAAQIECBAgQGCQBQTtQV69AR17J2inB53ljhSyU83MzOQb507mdQIECBAgQIAAAQIECPRBQHjpA7Iudgt0gvbBgwezNClkb2xsCNpZKQ0IECBAgAABAgQIEKiLgKBdl5Vo0DgWFxcn4y3h18bGxorcVe30wLQUtqenp+3VBu0RUyVAgAABAgQIECAwyALCyyCv3gCPfX5+/oX42K7Pcvdpp6vehw4dmjxx4sRfAzxdQydAgAABAgQIECBAoEECgnaDFttUCRAgQIAAAQIECBAgQKD3AoJ27431QIAAAQIECBAgQIAAAQINEhC0G7TYpkqAAAECBAgQIECAAAECvRcQtHtvrAcCBAgQIECAAAECBAgQaJCAoN2gxTZVAgQIECBAgAABAgQIEOi9gKDde2M9ECBAgAABAgQIECBAgECDBATtBi22qRIgQIAAAQIECBAgQIBA7wUE7d4b64EAAQIECBAgQIAAAQIEGiTwD1y5gD/MHH8UAAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_f5943e7071b348db8e50afcdac792e00\",\"min\":-5,\"description\":\"p\",\"max\":15,\"value\":5},{},{\"children\":[\"IPY_MODEL_4d97a4cfa21c4e2093296aa03d792f65\"],\"layout\":\"IPY_MODEL_a1754752431d48b3b0a229d697d675eb\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "(5, 20)"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(h, p=5, q=fixed(20));"
       },
       "cell_index": 19,
       "root": true
      }
     ]
    },
    "72e1075c1fae41b283a6a4e0039aded6": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 39,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABRCAYAAAAtiN7BAAAN0klEQVR4Xu3db2hdZx0H8JN//YNurSOCRiuDGQhNmrWsoEOUDUH2SjYVUdE3ooIy/2w4Gf7dC0GUDec2BMX5Z8pUfDNhvhIt6IuBtHYaOrRVU6VSsNotSWtu0iTX3zNyobUl5+bm2c05934O/EiX+5wnz/N5zoX73Tn3nIHCRoAAAQIECBAgQIAAAQIECGQTGMjWk44IECBAgAABAgQIECBAgACBQtB2EBAgQIAAAQIECBAgQIAAgYwCgnZGTF0RIECAAAECBAgQIECAAAFB2zFAgAABAgQIECBAgAABAgQyCgjaGTF1RYAAAQIECBAgQIAAAQIEBG3HAAECBAgQIECAAAECBAgQyCggaGfE1BUBAgQIECBAgAABAgQIEBC0HQMECBAgQIAAAQIECBAgQCCjgKCdEVNXBAgQIECAAAECBAgQIEBA0M50DMzOzu5dWFi4uay7oaGhucnJyWfL2nmdAAECBAgQIECAAAECBOopIGhnWreTJ082l5eXi4GBjUmbzWaxtrZ21/T09FOZ/rRuCBAgQIAAAQIECBAgQKBCAoJ2hsWYmZm5bXh4+Mjg4GBpbxGyU9Au4qw2+1ItDQgQ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XaD1eK8LFy6UdtYK2tPT047NUi0NCBAgQIAAAQIECBCoooAwc+WqpJugpe+Yfjbqm1VcsDqOqRW003e1y7Z0Z/J0RlvQLpPyOgECBAgQIECAAAECVRUQtKu6Mj00rlbQXlxcLJ1VCtrprLagXUqlAQECBAgQIECAAAECFRUQtCu6ML00rFbQTjfqamdLQfvAgQOOzXawtCFAgAABAgQIECBAoHICwkzllqT3BtQK2pcuXWp7coJ221QaEiBAgAABAgQIECBQMQFBu2IL0ovDaQXt9Iznsq3ZbL7YZGpqyrFZhuV1AgQIECBAgAABAgQqKSDMVHJZemtQraDdCtEbzS61Sc/dFrR76xgwGwIECBAgQIAAAQL9JCBo99Nqb9NcW0E73eisbEshO9Xk5GR547LOvE6AAAECBAgQIECAAIFtEBBmtgG93/5kK2gPDQ2VTj2F7JWVFUG7VEoDAgQIECBAgAABAgSqKiBoV3Vlemhcs7OzexuNxvPpbuIbndVOl42n73GndhMTE47NHjoGTIUAAQIECBAgQIBAPwkIM/202ts41xMnThyMM9rH0xnrjbZ4/Z74fvbD2zhUf5oAAQIECBAgQIAAAQJbEhC0t8RnZwIECBAgQIAAAQIECBAgcKWAoO2IIECAAAECBAgQIECAAAECGQUE7YyYuiJAgAABAgQIECBAgAABAoK2Y4AAAQIECBAgQIAAAQIECGQUELQzYuqKAAECBAgQIECAAAECBAgI2o4BAgQIECBAgAABAgQIECCQUUDQzoipKwIECBAgQIAAAQIECBAgIGg7BggQIECAAAECBAgQIECAQEaB/wHSo+5wbncgigAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_91356fb3691e4774a486ef0cdfb32bbf\",\"description\":\"x\",\"max\":10,\"step\":0.05},{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_9a8ad7859cea4387ac12174dd86956f0\",\"min\":0.5,\"description\":\"y\",\"max\":10,\"step\":0.05,\"value\":5},{},{\"children\":[\"IPY_MODEL_cb02672795334bc2bf63c70b8231df66\",\"IPY_MODEL_544222bf8c76477ea09e3eda73509027\"],\"layout\":\"IPY_MODEL_0aab97e937ad45879a74558a03d6f71b\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "name": "stdout",
          "output_type": "stream",
          "text": "0.0 5.0\n"
         },
         {
          "data": {
           "text/plain": "<function __main__.printer>"
          },
          "execution_count": 39,
          "metadata": {},
          "output_type": "execute_result"
         }
        ],
        "source": "x_widget = FloatSlider(min=0.0, max=10.0, step=0.05)\ny_widget = FloatSlider(min=0.5, max=10.0, step=0.05, value=5.0)\n\ndef update_x_range(*args):\n    x_widget.max = 2.0 * y_widget.value\ny_widget.observe(update_x_range, 'value')\n\ndef printer(x, y):\n    print(x, y)\ninteract(printer,x=x_widget, y=y_widget)"
       },
       "cell_index": 79,
       "root": true
      }
     ]
    },
    "7617adab7ee0492cbe7c7c562e0e3522": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 6,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABSCAYAAACrHKxvAAAMOElEQVR4Xu3dW4hV1xkH8DVzHHWsQ8cHEaG2jggtajQmhlZCY7A09KGUUrAPyUibkvah6SUEC00rTQOW0uKDLW2hN0zLaOlDoaJ9a1NIHoRqtDHkRgomKIiKaMbozODMOf22zkgGx9lncHtu+7fhY8g5y7X3+q01MP+sc/buSg4CBAgQIECAAAECBAgQIECgMIGuwnrSEQECBAgQIECAAAECBAgQIJAEbYuAAAECBAgQIECAAAECBAgUKCBoF4ipKwIECBAgQIAAAQIECBAgIGhbAwQIECBAgAABAgQIECBAoEABQbtATF0RIECAAAECBAgQIECAAAFB2xogQIAAAQIECBAgQIAAAQIFCgjaBWLqigABAgQIECBAgAABAgQICNrWAAECBAgQIECAAAECBAgQKFBA0C4QU1cECBAgQIAAAQIECBAgQEDQtgYIECBAgAABAgQIECBAgECBAoJ2gZi6IkCAAAECBAgQIECAAAECgrY1QIAAAQIECBAgQIAAAQIEChQQtAvE1BUBAgQIECBAgAABAgQIEBC0rQECBAgQIECAAAECBAgQIFCggKBdIKauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxdUWAAAECBAgQIECAAAECBG4G7b179/b39vb+c2Ji4uOVSuWtmWiy97q7u98cHR397OOPP34JHwECBAgQIECAAAECBAgQIDBd4GbQHhoaen7FihVfiZrV6NSpUynqT4ODg1+FSYAAAQIECBAgQIAAAQIECNwmaO/bt+/SAw888OF58+bNajQ+Pp6OHDny3mOPPdYPkwABAgQIECBAgAABAgQIELh90K5t3rx5Rp9z586lQ4cOpb6+vrRt27Z0+PDhFEHb97tvaH056ndR/4v6dNSfoy5HfXfypzVHgAABAgQIECBAgAABAiUSuBmWY0d7xqCdfVR89+7daWRkJD355JNpw4YNgvatC2QwXvpV1LqonVHfjKqWaB0ZKgECBAgQIECAAAECBAhMCswYtKvVavY97NTf35927dqVLl68mB599NG0devW6//MjvaM6+df8epHoh6JetcKI0CAAAECBAgQIECAAIFyCswYtA8cOJAOHjyYli1bls6ePZu2bNmStm/fflNI0J5xsXwpXv1r1CejjpVzORk1AQIECBAgQIAAAQIECMwYtF944YW0f//+6zqrV69OO3bsSB+8SZqgfcvCWRCv/DTqStTnJsO2j477/SJAgAABAgQIECBAgEAJBWYM2sPDw+mZZ565Hq537tyZli5dOo1G0L5lpfwoXnk+6lzU61F7on5ZwvVkyAQIECBAgAABAgQIECi9wAeD9jv33XffxxYsyDZnUxodHU2VSiX19PRMQxobG0vHjh17N+46vrL0ejcAvhb1dNRnooajDkV9KuqJqL8wIkCAAAECBAgQIECAAIFyCdwM2kNDQ08tWbLk2di9vhg72RMzMcQztCvnz59fEjdHe25wcDDbtXUQIECAAAECBAgQIECAAAECHxCY9izs+F72F2u12lOzCXV1de2JO5D/nSIBAgQIECBAgAABAgQIECBwq8C0oA2IAAECBAgQIECAAAECBAgQuDMBQfvO/PxrAgQIECBAgAABAgQIECAwTUDQtiAIECBAgAABAgQIECBAgECBAoJ2gZi6IkCAAAECBAgQIECAAAECgrY1QIAAAQIECBAgQIAAAQIEChQQtAvE1BUBAgQIECBAgAABAgQIEBC0rQECBAgQIECAAAECBAgQIFCggKBdIKauCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxdUWAAAECBAgQIECAAAECBARta4AAAQIECBAgQIAAAQIECBQoIGgXiKkrAgQIECBAgAABAgQIECAgaFsDBAgQIECAAAECBAgQIECgQAFBu0BMXREgQIAAAQIECBAgQIAAAUHbGiBAgAABAgQIECBAgAABAgUKCNoFYuqKAAECBAgQIECAAAECBAgI2tZAUwReffXVz3d3dx+s5+SLFi1aMjAwcKmettoQIECAAAECBAgQIECg2QKCdrNnoITnP3nyZP/Vq1cvRtDOHX21Wr3eZu3atdZqrpYGBAgQIECAAAECBAi0goDw0gqzULJriN3sh3t6ev7d1ZW//LKgnZWgXbJFYrgECBAgQIAAAQIE2lggP+m08eBcemsKCNqtOS+uigABAgQIECBAgACBYgQE7WIc9TIHAUF7DliaEiBAgAABAgQIECDQdgKCdttNWftfsKDd/nNoBAQIECBAgAABAgQI3F5A0LY6Gi4gaDec3AkJECBAgAABAgQIEGiggKDdQGynuiEgaHfkSngkRvWTqG1R73TkCA2KAAECBAgQIECAQJ0CgnadUJoVJyBoF2fZIj0ti+t4MOpvUQOCdovMissgQIAAAQIECBBomoCg3TT68p5Y0O7Iuc8eij4haHfk3BoUAQIECBAgQIDAHAUE7elgz8Z//jhqd9T3onqj9ke9HvXDOdpqfhsBQbtjl0ZN0O7YuTUwAgQIECBAgACBOQgI2rdivRgv/SPqZ5Nv/TF+fiMq262b9Th+/Hh/rVbbkNeu7O9XKpV7FyxYsKerK3/5VavVlNXY2NjDZXerZ/xh+srGjR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QIECgVQQE7VaZiRJdx2uvvXZv3En8+Pz583NHnYXs7Lvca9assVZztTQgQIAAAQIECBAgQKAVBISXVpiFEl7D22+/Xcse75U9umu2Y/J73A/FR8dfKiGTIRMgQIAAAQIECBAg0IYCgnYbTlqnXPIbb7yxMnasV842nsWLF/93YGDgUqeM2TgIECBAgAABAgQIEOh8AUG78+fYCAkQIECAAAECBAgQIECggQKCdgOxnYoAAQIECBAgQIAAAQIEOl9A0O78OTZCAgQIECBAgAABAgQIEGiggKDdQGynIkCAAAECBAgQIECAAIHOFxC0O3+OjZAAAQIECBAgQIAAAQIEGiggaDcQ26kIECBAgAABAgQIECBAoPMFBO3On2MjJECAAAECBAgQIECAAIEGCvwf2xowcT3J7kAAAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_64314e1ab4f24e5e9bf778db00ad075c\",\"description\":\"x\",\"value\":true},{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_32a900c49fa34629a165bc64ff982ee8\",\"min\":-1,\"description\":\"y\",\"max\":3,\"step\":0.1,\"value\":1},{},{\"children\":[\"IPY_MODEL_3e775a5256524c7d84998c84ae34daf2\",\"IPY_MODEL_b2e07530d58b4866be54aa5ea6982e3d\"],\"layout\":\"IPY_MODEL_4295d38da2914cf093a19fd7ae047f07\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "(True, 1.0)"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "@interact(x=True, y=1.0)\ndef g(x, y):\n    return (x, y)"
       },
       "cell_index": 14,
       "root": true
      }
     ]
    },
    "76a18bd9eee04953b37f07aeddfb243e": {
     "views": []
    },
    "78a3bb55acbf474ba9f0f26f667b266f": {
     "views": []
    },
    "7ce01c92275f4543a36e016a77d13b99": {
     "views": []
    },
    "839da53538904425bdca6c73cdcafafd": {
     "views": []
    },
    "83fb6e72950b459899c35905fefe839f": {
     "views": []
    },
    "84113ef905a94ee2b5f8470d35d1c64f": {
     "views": []
    },
    "885de56b3f2041b3a51f38b8799fb555": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 11,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHqklEQVR4Xu3dT2gcVRwH8EmyoS3moAcPBQs91iYNLS0oiGgRxIsHBT15EgXx4j8EBfGk6M0qnsSDeBFvHtSTUsSbtEZS6qEIqVAoWKjSJDRNt7v+nmbBqt2ZJJOdP/tZ+NE/+/bNe5/3FvLNzOxOZB4ECBAgQIAAAQIECBAgQIBAaQITpfWkIwIECBAgQIAAAQIECBAgQCATtG0CAgQIECBAgAABAgQIECBQooCgXSKmrggQIECAAAECBAgQIECAgKBtDxAgQIAAAQIECBAgQIAAgRIFBO0SMXVFgAABAgQIECBAgAABAgQEbXuAAAECBAgQIECAAAECBAiUKCBol4ipKwIECBAgQIAAAQIECBAgIGjbAwQIECBAgAABAgQIECBAoEQBQbtETF0RIECAAAECBAgQIECAAAFB2x6oRGBpaen25eXlByYmJg4PGcAfk5OT383Ozv5UySAdlAABAgQIECBAgAABAlsQELS3gOYl2xc4d+5cf319PYsgfcvO+v1+lqrX6z02Pz//xfaPqgcCBAgQIECAAAECBAjsvICgvfPGjvAvgTNnzjzY6XRODgvZg5dEyE5BO4uz2vaqnUSAAAECBAgQIECAQCMEhJdGLFO7BpmC9vT09Mm4bDx3YoJ2LpEGBAgQIECAAAECBAjUTCA/6dRswIbTfAFBu/lraAYECBAgQIAAAQIECNxaQNC2O0YuIGiPnNwBCRAgQIAAAQIECBAYoYCgPUJsh/pbQNC2EwgQIECAAAECBAgQaLOAoN3m1a3p3ATtmi7M9oc1HV38EPVq1Dfb704PBAgQIECAA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dxZp6CdzmoL2rlUGhAgQIAAAQIECBAgUBMBQbsmCzFOwxgE7fTBXUUeKWjHJ7rbq0WwtCFAgAABAgQIECBAoHIB4aXyJRi/AQyC9vXr1wtPXtAuTKUhAQIECBAgQIAAAQIVCwjaFS/AOB5+ELTTdz7nPfr9/l9N5ubm7NU8LM8TIECAAAECBAgQIFALAeGlFsswXoMYBO1BiB42+9Qmfe+2oD1ee8RsCRAgQIAAAQIECDRZQNBu8uo1dOyDoJ0+6CzvkUJ2qtnZ2fzGeZ15ngABAgQIECBAgAABAiMQEF5GgOwQNwsMgvbU1FQuTQrZ3W5X0M6V0oAAAQIECBAgQIAAgboICNp1WYkxGsfS0tLta2trv6cp553VTkE7fer4gQMH7NUx2iOmSoAAAQIECBAgQKDJAsJLk1evwWM/e/bs4U6ns5A3hfhk8pfi/uwTee08T4AAAQIECBAgQIAAgboICNp1WQnjIECAAAECBAgQIECAAIFWCAjarVhGkyBAgAABAgQIECBAgACBuggI2nVZCeMgQIAAAQIECBAgQIAAgVYICNqtWEaTIECAAAECBAgQIECAAIG6CAjadVkJ4yBAgAABAgQIECBAgACBVggI2q1YRpMgQIAAAQIECBAgQIAAgboICNp1WQnjIECAAAECBAgQIECAAIFWCAjarVhGkyBAgAABAgQIECBAgACBugj8Cc+siD9gzt/SAAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_3e89efcf10924434801060cdb750dfd2\",\"description\":\"x\",\"max\":8,\"step\":2,\"value\":4},{},{\"children\":[\"IPY_MODEL_100d37d7468b4b058bacf2859184b51f\"],\"layout\":\"IPY_MODEL_fa2cf97a450b4467af4fa51decd2b714\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "4"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=(0,8,2));"
       },
       "cell_index": 28,
       "root": true
      }
     ]
    },
    "8b083981295644fcaf92773d8155ba4b": {
     "views": []
    },
    "8bafcbd1b2fd46caa70d94fc4e633bd8": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 13,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIq0lEQVR4Xu3dT2gc1x0H8JEtS7ZsGcckhBgf6oMLkvxHwg7NoSEpLaFQaNNS+oc2pAltCLmkLQnJoaTJJbkkJLQ9lJ5Ccwih0PTQHnooPfRSqF0rst0WnGACwVCDLflPhFhrvf09RUscVd5ZeSe7szufgR+2dt7OvPd5T6CvdjQzlNkIECBAgAABAgQIECBAgACBwgSGCjuSAxEgQIAAAQIECBAgQIAAAQKZoG0RECBAgAABAgQIECBAgACBAgUE7QIxHYoAAQIECBAgQIAAAQIECAja1gABAgQIECBAgAABAgQIEChQQNAuENOhCBAgQIAAAQIECBAgQICAoG0NECBAgAABAgQIECBAgACBAgUE7QIxHYoAAQIECBAgQIAAAQIECAja1gABAgQIECBAgAABAgQIEChQQNAuENOhCBAgQIAAAQIECBAgQICAoG0N9Ezg5MmT9zdia9WB8fHxd/bt27fQs046MQECBAgQIECAAAECBDYoIGhvEEzzzgXOnj27q1arzS8vL7d7sJmpqanZdhtrR4AAAQIECBAgQIAAgV4KCNq91K/ouefm5h4cGRl5e2gof/nV6/UVpcnJyfzGFfU0bAIECBAgQIAAAQIEyiUgvJRrPirRm7hk/PmxsbGft/OJtqBdiSVhkAQIECBAgAABAgQGSkDQHqjp7I/BCNr9MU96SYAAAQIECBAgQIDArQkI2rfm5l0dCAjaHeB5KwECBAgQIECAAAECpRcQtEs/RYPXQUF78ObUiAgQIECAAAECBAgQ+FhA0LYaui4gaHedvIgTfjMO8mTUvTc52NF4/YdR/436TNRPoi6utm21r4i+OQYBAgQIECBAg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2qHQ/g/R4r99H/e2Gnrbalz8gLQgQIECAAAECBAj0oUDRP4z3IUFxXY4bok3H3x2nxxnZWgiMjIz8YMeOHQ+nX0zkbcPD6Z5cWbrM/At5be3PsvBaiBuhzbIgQIAAAQIECBAgQKB3AoJ27+wre+bm473m5+dzDZpBOy7Lt1ZztTQgQIAAAQIECBAgQKAMAsJLGWahYn1oBu2FhfwnUDX/5l3QrtgiMVwCBAgQIECAAAECfSwgaPfx5PVr15tBO573nDuETZs2rbQ5fPiwtZqrpQEBAgQIECBAgAABAmUQEF7KMAsV60MzaKdHfOVtQ0MfLdFDhw5Zq3lY9hMgQIAAAQIECBAgUAoB4aUU01CtTjSD9uLiYtsDP3jwoLXatpaGBAgQIECAAAECBAj0UkB46aV+Rc/dDNpLS0u5Ao1GY6XNgQMHrNVcLQ0IECBAgAABAgQIECiDgPBShlmoWB+aQbtWq+WO/Pr16yttpqamrNVcLQ0IECBAgAABAgQIECiDgPBShlmoWB+aQTuejZ078nq9vtJmcnLSWs3V0oAAAQIECBAgQIAAgTIICC9lmIWK9eHUqVM/Hh0dfbWdYTfD+MTEhLXaDpg2BAgQIECAAAECBAj0XEB46fkUVK8Dp0+fno7Hdp1Ij+5q3lX8ZgopaEc9Encdf716UkZMgAABAgQIECBAgEA/Cgja/ThrA9Dnubm5B4eHh9/OG0pcOv5C3HH8+bx29hMgQIAAAQIECBAgQKAsAoJ2WWZCPwgQIECAAAECBAgQIEBgIAQE7YGYRoMgQIAAAQIECBAgQIAAgbIICNplmQn9IECAAAECBAgQIECAAIGBEBC0B2IaDYIAAQIECBAgQIAAAQIEyiIgaJdlJvSDAAECBAgQIECAAAECBAZCQNAeiGk0CAIECBAgQIAAAQIECBAoi4CgXZaZ0A8CBAgQIECAAAECBAgQGAgBQXsgptEgCBAgQIAAAQIECBAgQKAsAv8DzHioP+lG0k4AAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_76a18bd9eee04953b37f07aeddfb243e\",\"description\":\"x\",\"max\":10,\"step\":0.01,\"value\":4.99},{},{\"children\":[\"IPY_MODEL_1dd6c2f0eb1b450fb55fb6bf78fbcc7f\"],\"layout\":\"IPY_MODEL_2d04cb4fe8ad418aa8e3903f34b6f34d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "4.99"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=(0.0,10.0,0.01));"
       },
       "cell_index": 32,
       "root": true
      }
     ]
    },
    "91356fb3691e4774a486ef0cdfb32bbf": {
     "views": []
    },
    "92737060a2e046a38c84a9ae8557974c": {
     "views": []
    },
    "948b5574396e47bea5d8b0ab7bf86b40": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 15,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAJs0lEQVR4Xu3cXaxNZxoH8MdHkAiZaB2poBOJXkxGqkFIimBChAgZH1UknYggbgi9K0N8ZHxnwjRNEMoFmXJBM6EXxkc0rSbt4KZJayQzvsJpggwSDo5Za+Vozimt07PfPbXMbydv9j77nPWs1+9Ze2f/rXftVuFGgAABAgQIECBAgAABAgQIJBNolaySQgQIECBAgAABAgQIECBAgEAI2g4CAgQIECBAgAABAgQIECCQUEDQToipFAECBAgQIECAAAECBAgQELQdAwQIECBAgAABAgQIECBAIKGAoJ0QUykCBAgQIECAAAECBAgQICBoOwYIECBAgAABAgQIECBAgEBCAUE7Eebp06d/9fDhw3e6dOkyOVFJZQiUTqBNmza/yV4HX1dr4tevX9+f7WPXG2+8cbNa+1CXAAECBAgQIECAQKUCgnalgg3bnzt37lHbtm2jXbt2iSoqQ6B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MqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgBe1EkMqUWkDQLnX7TJ4AAQIECBAgQCCRgKCdCFLQTgSpTKkFBO1St8/kCRAgQIAAAQIEEgkI2okgL1269Kiuri46dOiQqKIyBMoncP369ejSpUvVJn737t1o165d9OjRw3tX1ZQVJkCAAAECBAgQqFTAh9VKBRttn53N+0N9ff2vE5ZUikCpBFq3bj04ew2cqtaks/r/6t+//4fVqq8uAQIECBAgQIAAgRQCgnYKRTUIECBAgAABAgQIECBAgECDgKDtUCBAgAABAgQIECBAgAABAgkFBO2EmEoRIECAAAECBAgQIECAAAFB2zFAgAABAgQIECBAgAABAgQSCgjaCTGVIkCAAAECBAgQIECAAAECgrZjgAABAgQIECBAgAABAgQIJBQQtBNiKkWAAAECBAgQIECAAAECBP4LBQLgTmcJEeMAAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_3e026880026346e7a827527e14b3f3f5\",\"_options_labels\":[\"apples\",\"oranges\"],\"description\":\"x\",\"value\":\"apples\"},{},{\"children\":[\"IPY_MODEL_f7d78068687b43cfa5cfbc352c4f8fe7\"],\"layout\":\"IPY_MODEL_4f44ae0222c2426baaeec551960c104d\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "'apples'"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=('apples','oranges'));"
       },
       "cell_index": 36,
       "root": true
      }
     ]
    },
    "9a8ad7859cea4387ac12174dd86956f0": {
     "views": []
    },
    "9af66bf6fede431d980f5bd76f158678": {
     "views": []
    },
    "9ba96e0407474665a5497c2dd560d6d2": {
     "views": []
    },
    "9ddc71f5707b4dac89497a9b209149be": {
     "views": []
    },
    "9ffaa0f372bc494bb66a6fe1585ca021": {
     "views": []
    },
    "a1754752431d48b3b0a229d697d675eb": {
     "views": []
    },
    "a4127871e78946388b030299b8996440": {
     "views": []
    },
    "a6088e5a3ca94a2e86b13c149de7d1ff": {
     "views": []
    },
    "a9c24e748d6f4004a2aba6cc5596a1f2": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 5,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAJc0lEQVR4Xu3dXYhV5RoH8CcbZ04RITjeqGAXQR+I2jhyCsoLj8mJuigv7EZTjhGVykkLqcjjlZzAgjp6UdaFWWCK0I2RYAqC+EWNiqKDiGiKo46TOadDZ4ZRz3rXaSa/asbxHWZv+G140dmuefbav+dls/+ud611R3gQIECAAAECBAgQIECAAAEC2QTuyFZJIQIECBAgQIAAAQIECBAgQCAEbZOAAAECBAgQIECAAAECBAhkFBC0M2IqRYAAAQIECBAgQIAAAQIEBG1zgAABAgQIECBAgAABAgQIZBQQtDNiKkWAAAECBAgQIECAAAECBARtc4AAAQIECBAgQIAAAQIECGQUELQzYTY1NY259957d3V2dv4pU0llCBC4TqC2tva/7e3tjzY0NJyAQ4AAAQIECBAgQKBSBQTtTJ1pbm6+Mnz48Kirq8tUURkCBK4X6OjoiLa2tnjwwQd9dpkeBAgQIECAAAECFSvgy2qm1nz33XdXJk6cmKmaMgQI/J7A999/H42NjT67TBECBAgQIECAAIGKFfBlNVNrBO1MkMoQ6EVA0DZFCBAgQIAAAQIEKl1A0M7UIUE7E6QyBARtc4AAAQIECBAgQKDKBQTtTA0UtDNBK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SuF7h06VIcOHAgHnnkEZ9dpgcBAgQIECBAgEDFCviymqk1ra2tV1paWqKuri5TRWUIELheoKOjI0aOHBn19fU+u0wPAgQIECBAgACBihXwZTVja/bu3XtfV1fXfRlLKkWAwFUCNTU1x4uj2cehECBAgAABAgQIEKhkAUG7krtj3wgQIECAAAECBAgQIECg6gQE7aprmR0mQIAAAQIECBAgQIAAgUoWELQruTv2jQABAgQIECBAgAABAgSqTkDQrrqW2WECBAgQIECAAAECBAgQqGQBQbuSu2PfCBAgQIAAAQIECBAgQKDqBATtqmuZHSZAgAABAgQIECBAgACBShYQtCu5O/aNAAECBAgQIECAAAECBKpO4H/7FudOLFCq6gAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_12d1ce5e84c14f85bb63e387bed88c62\",\"description\":\"x\",\"value\":\"Hi there!\"},{},{\"children\":[\"IPY_MODEL_5ae4f8a88dec43438f1f09c8d73db624\"],\"layout\":\"IPY_MODEL_a4127871e78946388b030299b8996440\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "'Hi there!'"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x='Hi there!');"
       },
       "cell_index": 12,
       "root": true
      }
     ]
    },
    "aaaf79ab3ddd40dda9be3499a957f79b": {
     "views": []
    },
    "ade195bcd3ed4e8894d70b5300cb0b60": {
     "views": []
    },
    "b1841252e7564c029563ba4eac893ab9": {
     "views": []
    },
    "b2dba4dd9f5441968452bbe6508faf16": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 36,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHj0lEQVR4Xu3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r2ulj4+l73KlvamqKfQF7UxAgQIAAAQIECBAgQKBqAsJeoR05fvz4nrii/VW6Yr3eI8afixuhvVXosKYhQIAAAQIECBAgQIAAgYoJCNoV2xDLIUCAAAECBAgQIECAAIF6Cwja9d4/qydAgAABAgQIECBAgACBigkI2hXbEMshQIAAAQIECBAgQIAAgXoLCNr13j+rJ0CAAAECBAgQIECAAIGKCQjaFdsQyyFAgAABAgQIECBAgACBegsI2vXeP6snQIAAAQIECBAgQIAAgYoJCNoV2xDLIUCAAAECBAgQIECAAIF6Cwja9d4/qydAgAABAgQIECBAgACBign8DU/j3z8TQAhdAAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_e3d87c8ce8a242369de7070993b5d113\",\"min\":100000,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"children\":[\"IPY_MODEL_c66599dec86d4a5db04cc8e6079ff2de\"],\"layout\":\"IPY_MODEL_dba0d9bbc45c4e0bbef339527d7aa2ac\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "name": "stdout",
          "output_type": "stream",
          "text": "100000 [0, 1, 2, 3, 11, 22, 101, 111, 121, 202, 212, 1001, 1111, 2002, 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102]\n"
         },
         {
          "data": {
           "text/plain": "<function __main__.slow_function>"
          },
          "execution_count": 36,
          "metadata": {},
          "output_type": "execute_result"
         }
        ],
        "source": "from ipywidgets import FloatSlider\ninteract(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5))"
       },
       "cell_index": 69,
       "root": true
      }
     ]
    },
    "b2e07530d58b4866be54aa5ea6982e3d": {
     "views": []
    },
    "b35176902adb455eae17c07959adcc89": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 4,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAwCAYAAADuIAI+AAAF50lEQVR4Xu3dPUi1ZRgH8PsclZAUdRANGhLcDGwrhzAMXtqSwMCvJWrJIQgXQZqEFoeIploiv3g3RdekJrd4G2wKLBxSFz8ydTp2KS+HxGO+w73dP+FCvc/DBdePy+HP8/BYSb4IECBAgAABAgQIECBAgACBbAKVbJ00IkCAAAECBAgQIECAAAECBJKgbQkIECBAgAABAgQIECBAgEBGAUE7I6ZWBAgQIECAAAECBAgQIEBA0LYDBAgQIECAAAECBAgQIEAgo4CgnRFTKwIECBAgQIAAAQIECBAgIGjbAQIECBAgQIAAAQIECBAgkFFA0M6IqRUBAgQIECBAgAABAgQIEBC07QABAgQIECBAgAABAgQIEMgoIGhnxNSKAAECBAgQIECAAAECBAgI2naAAAECBAgQIECAAAECBAhkFBC0M2JqRYAAAQIECBAgQIAAAQIEBG07QIAAAQIECBAgQIAAAQIEMgoI2hkxtSJAgAABAgQIECBAgAABAoK2HSBAgAABAgQIECBAgAABAhkFBO2MmFoRIECAAAECBAgQIECAAAFB2w4QIECAAAECBAgQIECAAIGMAoJ2RkytCBAgQIAAAQIECBAgQIBAPWivra29Fhw/VyqVWrVa/acRTa1We/n6+roanw2Pj4//gY8AAQIECBAgQIAAAQIECBC4K1AP2isrK+t9fX3v9/b2/q/RwcFB2tvb25icnByFSYAAAQIECBAgQIAAAQIECDwctK+HhoZeyGdnZydF0PbY+QtpuYgAAQIECBAgQIAAAQIEShL47x3tB4P20dFR2traSu3t7WlsbCwJ2ndW5MP47duo36Pejvoh6u+oz55/L2mfzEqAAAECBAgQIECAAIHiBR4N2vv7+2lxcTFdXl6mmZmZNDg4KGjfX5upOPom6vWo+ahPo2rFbxcAAgQIECBAgAABAgQIFCjQMGjHS8/STcDu7OxMCwsL6fj4OE1MTKSRkZFbIne0G27Kj3H6atSTqD8L3CUjEyBAgAABAgQIECBAgEAINAzaGxsbaXNzM/X09KTDw8M0PDycpqen62CCdsPd+SBOn0a9GfWL7SJAgAABAgQIECBAgACBMgUaBu3t7e20urp6K9Lf359mZ2dTc3OzoP3wjrwUH30ZdfNv0d57HrY9Ol7m35SpCRAgQIAAAQIECBAoXKBh0D47O0tzc3O34Xp+fj51d3ffYXJH+97WfBEn30cdRf0W9VXU14XvlvEJECBAgAABAgQIECBQpEA9aC8vLz8bGBgY7OjouIW4urpKTU1NqaWl5Q7M6elp2t3d/XVqauqNIsXuD/1RHH0e9W7UWdRW1FtRH0etMSJAgAABAgQIECBAgACBsgTqQTseFR9tbW39rqur66+2trbTRgzn5+cdJycnr1xcXHwSL0dbL4vKtAQIECBAgAABAgQIECBA4HGBetC+uXRpaemdarU6Gj8+dLf6WbyRfD1ejPbT461dQYAAAQIECBAgQIAAAQIEyhO4E7TLG9/EBAgQIECAAAECBAgQIEAgr4CgnddTNwIECBAgQIAAAQIECBAoXEDQLnwBjE+AAAECBAgQIECAAAECeQUE7byeuhEgQIAAAQIECBAgQIBA4QKCduELYHwCBAgQIECAAAECBAgQyCsgaOf11I0AAQIECBAgQIAAAQIEChcQtAtfAOMTIECAAAECBAgQIECAQF4BQTuvp24ECBAgQIAAAQIECBAgULiAoF34AhifAAECBAgQIECAAAECBPIKCNp5PXUjQIAAAQIECBAgQIAAgcIFBO3CF8D4BAgQIECAAAECBAgQIJBXQNDO66kbAQIECBAgQIAAAQIECBQuIGgXvgDGJ0CAAAECBAgQIECAAIG8AoJ2Xk/dCBAgQIAAAQIECBAgQKBwAUG78AUwPgECBAgQIECAAAECBAjkFRC083rqRoAAAQIECBAgQIAAAQKFCwjahS+A8QkQIECAAAECBAgQIEAgr4CgnddTNwIECBAgQIAAAQIECBAoXOBfSna3MQ2YDzQAAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_839da53538904425bdca6c73cdcafafd\",\"description\":\"x\",\"value\":true},{},{\"children\":[\"IPY_MODEL_ade195bcd3ed4e8894d70b5300cb0b60\"],\"layout\":\"IPY_MODEL_edf554e9b3204fe0bafb7a32936dd023\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "True"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=True);"
       },
       "cell_index": 10,
       "root": true
      }
     ]
    },
    "b526d766e3424be49f7d8b3d6021314f": {
     "views": []
    },
    "b56780580a2f40b79dd65c0621943d2d": {
     "views": []
    },
    "b57d53765bee453596885a27f6ccd755": {
     "views": []
    },
    "c2690bd646a04d889f8dc4d474e2f41b": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 3,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAIIElEQVR4Xu3dT2gcVRwH8IlpYkspFBRBaj2KNE3/ptSLUBHUg148iIIiFVHRg+LBg//xYA8eKiIeFDUKUkXQS69iqidtYyHV5qAQxNaDSA/tlqZJmvX36i60UTLbZjK7k/kM/Ngm+/Lmvc97W/JlZjd9mYMAAQIECBAgQIAAAQIECBAoTKCvsJ50RIAAAQIECBAgQIAAAQIECGSCtk1AgAABAgQIECBAgAABAgQKFBC0C8TUFQECBAgQIECAAAECBAgQELTtAQIECBAgQIAAAQIECBAgUKCAoF0gpq4IECBAgAABAgQIECBAgICgbQ8QIECAAAECBAgQIECAAIECBQTtAjF1RYAAAQIECBAgQIAAAQIEBG17gAABAgQIECBAgAABAgQIFCggaBeIqSsCBAgQIECAAAECBAgQICBo2wNdEZiamlrfaDQejZOvzxnAoeHh4bGuDNJJCRAgQIAAAQIECBAgcBUCgvZVoPmRpQtMTk425+fns76+xbdgs9nM5ubmntm6det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baYECBAgQIAAAQIECBAgUIKAoF0CslMQIECAAAECBAgQIECAQH0E/gEShZI/zepUZwAAAABJRU5ErkJggg==",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"layout\":\"IPY_MODEL_d0f3efb99b9c4630930ba1e58d0e265f\",\"min\":-10,\"description\":\"x\",\"max\":30,\"value\":10},{},{\"children\":[\"IPY_MODEL_cdebfde35e9b446db86d29c692798662\"],\"layout\":\"IPY_MODEL_5fea5451413e4bce878c6295f3d22638\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "10"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=10);"
       },
       "cell_index": 8,
       "root": true
      }
     ]
    },
    "c3ef5cef14ef4b5891d3fa70d669054c": {
     "views": []
    },
    "c66599dec86d4a5db04cc8e6079ff2de": {
     "views": []
    },
    "cb02672795334bc2bf63c70b8231df66": {
     "views": []
    },
    "cdebfde35e9b446db86d29c692798662": {
     "views": []
    },
    "d0f3efb99b9c4630930ba1e58d0e265f": {
     "views": []
    },
    "d1294656d023417c8deed30ebaa2bd55": {
     "views": []
    },
    "d4f11ec882594c148f41017b26acc38c": {
     "views": []
    },
    "dba0d9bbc45c4e0bbef339527d7aa2ac": {
     "views": []
    },
    "dd1298945da7404d92eae7e43fd8d481": {
     "views": []
    },
    "dd409ebae1a44ac38075bbf73841994f": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 12,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAAAvCAYAAAAcoLJwAAAHr0lEQVR4Xu3dT2gcVRwH8Mm/JtSiVcihoNhWvCRpaGhBQZSKIB48iAfx4En04kHBq3/wIHgV9eRFUVDEo95EK3htjSTUClVqIVC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bzhXjr+E8NZNIyAQIECBAgQIAAAQIDKCBoD+CiDcuUT58+vT+uWO/frp/4Wq/vh6VffRAgQIAAAQIECBAg0AwBQbsZ66xLAgQIECBAgAABAgQIEKhIQNCuCNppCBAgQIAAAQIECBAgQKAZAoJ2M9ZZlwQIECBAgAABAgQIECBQkYCgXRG00xAgQIAAAQIECBAgQIBAMwQE7Wassy4JECBAgAABAgQIECBAoCIBQbsiaKchQIAAAQIECBAgQIAAgWYICNrNWGddEiBAgAABAgQIECBAgEBFAn8Dskp2P8UUduAAAAAASUVORK5CYII=",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_84113ef905a94ee2b5f8470d35d1c64f\",\"description\":\"x\",\"max\":10,\"step\":0.1,\"value\":5},{},{\"children\":[\"IPY_MODEL_e1401910fb3043bdb307204915be5613\"],\"layout\":\"IPY_MODEL_16232cf8f4b2464a9bc0fe401ad506c4\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "5.0"
          },
          "metadata": {},
          "output_type": "display_data"
         }
        ],
        "source": "interact(f, x=(0.0,10.0));"
       },
       "cell_index": 30,
       "root": true
      }
     ]
    },
    "dd65f2186b914530b9d59f84de65b67d": {
     "views": []
    },
    "e1401910fb3043bdb307204915be5613": {
     "views": []
    },
    "e33e940ad7b048348f6888faaa642a11": {
     "views": [
      {
       "cell": {
        "cell_type": "code",
        "execution_count": 37,
        "metadata": {
         "collapsed": false,
         "trusted": true
        },
        "outputs": [
         {
          "data": {
           "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9oAAABTCAYAAABgQH/KAAARu0lEQVR4Xu3dCYwU1Z8H8DfAzEp0I2aN8RYVr+EWMMYLj3hrvDcar4i38Yoar3UV433E+44HiRdGjbfGREXFZE0EQRAViKKJZ+KBC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IAAAQJ1LlDToB2zvCeddFLaf//90xlnnJEvKX/44YfThAkT0hNPPJGmTZuWzjvvvHTjjTemPn36pFtvvTXttttuacaMGenjjz9O55xzTtp77707JY1Z8qi13nrrpWeeeSbddNNNqV+/fqlj0H788cdTc3Nzvox9rbXWSqeddlp+/gsuuCA/9y677JKuvPLK1NTUlG644Yb858UXX5y3rbfeutNzf/LJJ2ns2LFp1qxZ6cADD0w77LBDPrMdx59//vnplVdeSVdffXV+nvfeey/dfvvt+b/HUvNvvvkmxYcRMUM9Z86c9Oyzz6Y111wzvfPOO3l/Fi5cmC+/b21tzZfAL1myJN1zzz25Td++fXPDuKZ11lknffrpp/msdyxZX9F5qv2eFLSrLaw+AQIECBAgQIAAAQL1LFCToB3BK8Jn3Lt81VVXpV133bXdJMJnBM0I2rEdd9xxeQiNZddnnnlm2nbbbfPA+frrr6eXX345PfDAA516vvvuu3mQjaXiU6ZMycPqlltu+Y+gHYH366+/zgN76VyHHHJIOuqoo9K1116b3zceHwR88MEH6e67784DewT4559/Ph177LErHMeoPX78+PYZ7QcffDC/Xzuu5c8//8w/MIj+LV68OO200055UI5Qf80116T1118/v6c77l0/5ZRT8g8I4ty//fZb/oFE1IgPJ0oz2hGmH3vssTxojx49Ou2zzz55zV9++SUdeuih+b4ttthiueep9htS0K62sPoECBAgQIAAAQIECNSzQE2Cdiwdj0AZYfXggw9OJ554YkVBe9mAGSE1Zolj9raz7aeffsrrbrXVVun0009PAwYMyA9bdkb7rLPOymfEDzvssHxfzIBPmjQp3Xvvvfk90BFaI1Q/9dRT+Qx1zCTHzHcsPd9ggw0KCdpRJAJ2zGavu+66qRTI4971COPvv/9+6tGjxz/O1TFoR+i+//770yabbJLXilC+6aab5q+JDydGjBiRRo0a1el5ola1N0G72sLqEyBAgAABAgQIECBQzwI1C9rxMLRY2hwztBGWS0/MjlAWS6k7m9HuGLSXnfnuiLpo0aJ89nnMmDHpySefzJd977777v8I2nHuYcOG5bPHsUWojmAbAT62mNmOGfFYAj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IECBAgACB1VlA0F6dR79K1y5oVwlWWQIECBAgQIAAAQIEGkKgPWhPmTJlSb9+/VLv3r0bouM6WZ8CbW1taebMmWnQoEHt76367KleESBAgAABAgQIECBAoDoC7WEom4Xctbm5+b0FCxYISNWxXi2qtrS0LMm2kYMHDx6/WlywiyRAgAABAgQIECBAgEAHAaHaW4IAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQKCdoGYShEgQIAAAQIECBAgQIAAAUHbe4AAAQIECBAgQIAAAQIECBQoIGgXiKkUAQIECBAgQIAAAQIECBAQtL0HCBAgQIAAAQIECBAgQIBAgQL/C15NCa4apmyvAAAAAElFTkSuQmCC",
           "text/html": "<img src= class=\"jupyter-widget\">\n<script type=\"application/vnd.jupyter-embedded-widgets\">[{},{\"_view_name\":\"FloatSliderView\",\"layout\":\"IPY_MODEL_083b40422aa7415d8fc36cbd14fb3e9a\",\"min\":100000,\"description\":\"i\",\"max\":10000000,\"step\":100000,\"value\":100000},{},{\"layout\":\"IPY_MODEL_dd65f2186b914530b9d59f84de65b67d\",\"description\":\"Run slow_function\"},{},{\"children\":[\"IPY_MODEL_39587b25c64e4b3884a7e45290af1f48\",\"IPY_MODEL_9ffaa0f372bc494bb66a6fe1585ca021\"],\"layout\":\"IPY_MODEL_aaaf79ab3ddd40dda9be3499a957f79b\",\"_dom_classes\":[\"widget-interact\"]}]</script>"
          },
          "metadata": {
           "isWidgetSnapshot": true
          },
          "output_type": "display_data"
         },
         {
          "data": {
           "text/plain": "<function __main__.slow_function>"
          },
          "execution_count": 37,
          "metadata": {},
          "output_type": "execute_result"
         }
        ],
        "source": "interact(slow_function,i=FloatSlider(min=1e5, max=1e7, step=1e5),__manual=True)"
       },
       "cell_index": 73,
       "root": true
      }
     ]
    },
    "e3d87c8ce8a242369de7070993b5d113": {
     "views": []
    },
    "e5deb944275f47cfa3bea7b0fe645832": {
     "views": []
    },
    "e98df8c56879468cbebcf3a05a22cdf7": {
     "views": []
    },
    "edf554e9b3204fe0bafb7a32936dd023": {
     "views": []
    },
    "ee976feeed2144dcbfdbf7c7d6ebabda": {
     "views": []
    },
    "f36023aeb25547548a5127e8414d5476": {
     "views": []
    },
    "f5943e7071b348db8e50afcdac792e00": {
     "views": []
    },
    "f7d78068687b43cfa5cfbc352c4f8fe7": {
     "views": []
    },
    "fa2cf97a450b4467af4fa51decd2b714": {
     "views": []
    },
    "fc4b5b4835c54b7a85e7b4ddb03d1dc1": {
     "views": []
    }
   },
   "version": "0.0.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
